Class ToolMessage
API don't send these anymore.
It is only used to send the tool outputs from the 'client' side.
Assembly: Glitch9.AIDevKit.dll
public sealed class ToolMessage : Message, IPrompt, IValidatable, IHasId<string>
Constructors
|
Edit this page
View Source
Declaration
|
Edit this page
View Source
ToolMessage(MessageContent)
Declaration
public ToolMessage(MessageContent content)
Parameters
|
Edit this page
View Source
Declaration
public ToolMessage(string toolCallId, string result)
Parameters
Properties
|
Edit this page
View Source
The role of the messages author.
Role is abstract and overridden in derived classes to enforce consistency.
This avoids relying on constructor or deserialization logic to set the role.
JSON.NET does not call parameterized constructors or set get-only properties during deserialization.
Declaration
public override ChatRole Role { get; }
Property Value
Overrides
|
Edit this page
View Source
Required. The ID of the tool call that produced this output.
Declaration
public string ToolCallId { get; set; }
Property Value
Operators
|
Edit this page
View Source
Declaration
public static implicit operator string(ToolMessage message)
Parameters
Returns
Implements
Extension Methods