mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 07:07:22 +00:00
Generated the JSON contracts of providers, the runtime, and services at compile time (#1150)
This commit is contained in:
1 parent
e954881fda
commit
24e3c22db3
140 files changed
+1415
-292
No files matched your search
@@ -7,4 +7,12 @@ namespace AIStudio.Provider.Anthropic;
|
||||
/// All results of one turn belong in a single message. Splitting them across several messages
|
||||
/// teaches the model to stop asking for more than one tool at a time.
|
||||
/// </remarks>
|
||||
public sealed record AnthropicToolResultMessage(IList<AnthropicToolResultContent> Content, string Role = "user") : IMessage<IList<AnthropicToolResultContent>>;
|
||||
public sealed record AnthropicToolResultMessage(IList<AnthropicToolResultContent> Content, string Role = "user") : IMessage<IList<AnthropicToolResultContent>>
|
||||
{
|
||||
//
|
||||
// The properties of the parameters, declared again to be settable, as the messages demand it. Keep them in
|
||||
// the order of the parameters, which is the order they get written in:
|
||||
//
|
||||
public IList<AnthropicToolResultContent> Content { get; set; } = Content;
|
||||
public string Role { get; set; } = Role;
|
||||
}
|
||||
Reference in new issue
Block a user