Skip to content

GoogleToolResult

Namespace: Vercel.AI.Google

public sealed class GoogleToolResult : GeneratedContent

A provider-executed tool result.

Inheritance: object → GeneratedContent

View source

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?

View source

public string Outcome { get; }

Code-execution outcome, when this result came from code execution.

Value: string

View source

public string Output { get; }

Result payload.

Value: string

View source

public JsonElement? ProviderMetadata { get; }

Provider metadata.

Value: JsonElement?

View source

public string ToolCallId { get; }

Matching tool-call id.

Value: string

View source

public string ToolName { get; }

Tool name.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product