GoogleToolResultPart
Namespace: Vercel.AI.Google
public sealed class GoogleToolResultPartOne tool result.
Inheritance: object
Constructors
Section titled “Constructors”GoogleToolResultPart(string)
Section titled “GoogleToolResultPart(string)”public GoogleToolResultPart(string toolName)Creates a tool result.
Parameters
| Name | Type | Description |
|---|---|---|
toolName |
string |
Properties
Section titled “Properties”Content
Section titled “Content”public IReadOnlyList<GoogleToolContentPart>? Content { get; set; }Multimodal content parts when OutputKind is content.
Value: IReadOnlyList<GoogleToolContentPart>
DenialReason
Section titled “DenialReason”public string? DenialReason { get; set; }Reason a tool call was denied.
Value: string
Output
Section titled “Output”public string? Output { get; set; }JSON or text payload.
Value: string
OutputKind
Section titled “OutputKind”public string OutputKind { get; set; }json, text, content, error-text, error-json, or execution-denied. The last three are sent on response.error.
Value: string
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }Provider options keyed by namespace.
Value: IReadOnlyDictionary<string, JsonElement>
ToolCallId
Section titled “ToolCallId”public string? ToolCallId { get; set; }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