Skip to content

ToolSearchStepItem

Namespace: Vercel.AI.Operations

public sealed class ToolSearchStepItem

A tool result or tool error from one step.

Inheritance: object

View source

ToolSearchStepItem(string, string, string?, object?)

Section titled “ToolSearchStepItem(string, string, string?, object?)”
public ToolSearchStepItem(string type, string toolCallId, string? toolName, object? output)

Creates an item.

Parameters

Name Type Description
type string
toolCallId string
toolName string
output object

View source

public object? Output { get; }

Result value.

Value: object

View source

public string ToolCallId { get; }

Tool call id.

Value: string

View source

public string? ToolName { get; }

Tool name.

Value: string

View source

public string Type { get; }

tool-result or tool-error.

Value: string

View source

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