GoogleToolResult
Namespace: Vercel.AI.Google
public sealed class GoogleToolResult : GeneratedContentA provider-executed tool result.
Inheritance: object → GeneratedContent
Constructors
Section titled “Constructors”GoogleToolResult(string, string, string, string, JsonElement?)
Section titled “GoogleToolResult(string, string, string, string, JsonElement?)”public GoogleToolResult(string toolCallId, string toolName, string outcome, string output, JsonElement? providerMetadata = null)Creates a tool result.
Parameters
| Name | Type | Description |
|---|---|---|
toolCallId |
string | |
toolName |
string | |
outcome |
string | |
output |
string | |
providerMetadata |
JsonElement? |
Properties
Section titled “Properties”Outcome
Section titled “Outcome”public string Outcome { get; }Code-execution outcome, when this result came from code execution.
Value: string
Output
Section titled “Output”public string Output { get; }Result payload.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata.
Value: JsonElement?
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