Skip to content

ToolModelOutput

Namespace: Vercel.AI.Prompt

public abstract class ToolModelOutput

A tool result sent back to the model. Maps to ToolResultOutput.

Inheritance: object

Derived: ContentToolModelOutput, ErrorJsonToolModelOutput, ErrorTextToolModelOutput, JsonToolModelOutput, TextToolModelOutput

View source

protected ToolModelOutput(string type)

Creates an output.

Parameters

Name Type Description
type string

View source

public string Type { get; }

Output type.

Value: string

View source

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