Skip to content

HuggingFaceToolResult

Namespace: Vercel.AI.HuggingFace

public sealed class HuggingFaceToolResult : GeneratedContent

A tool result returned in the response output.

Inheritance: object → GeneratedContent

View source

HuggingFaceToolResult(string, string, JsonElement)

Section titled “HuggingFaceToolResult(string, string, JsonElement)”
public HuggingFaceToolResult(string toolCallId, string toolName, JsonElement result)

Creates a tool result.

Parameters

Name Type Description
toolCallId string
toolName string
result JsonElement

View source

public JsonElement Result { get; }

Result value.

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