AssistantToolResultPart
Namespace: Vercel.AI.Provider
public sealed class AssistantToolResultPart : AssistantContentPartA provider-executed tool result in an assistant message.
Inheritance: object → AssistantContentPart
Constructors
Section titled “Constructors”AssistantToolResultPart(string, string, ToolModelMessage, IReadOnlyDictionary<string, JsonElement>?)
Section titled “AssistantToolResultPart(string, string, ToolModelMessage, IReadOnlyDictionary<string, JsonElement>?)”public AssistantToolResultPart(string toolCallId, string toolName, ToolModelMessage output, IReadOnlyDictionary<string, JsonElement>? providerOptions = null)Creates a tool-result part. <code class=“paramref”>output</code> carries the output type and value.
Parameters
| Name | Type | Description |
|---|---|---|
toolCallId |
string | |
toolName |
string | |
output |
ToolModelMessage | |
providerOptions |
IReadOnlyDictionary<string, JsonElement> |
Properties
Section titled “Properties”Output
Section titled “Output”public ToolModelMessage Output { get; }The output, as a tool message with the same call id and name. Use its OutputType and OutputJson.
Value: ToolModelMessage
ToolCallId
Section titled “ToolCallId”public string ToolCallId { get; }Matching tool call id.
Value: string
ToolName
Section titled “ToolName”public string ToolName { get; }Tool name.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product