HuggingFaceToolResult
Namespace: Vercel.AI.HuggingFace
public sealed class HuggingFaceToolResult : GeneratedContentA tool result returned in the response output.
Inheritance: object → GeneratedContent
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”Result
Section titled “Result”public JsonElement Result { get; }Result value.
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