Skip to main content

TreeAgentToolCallMessage Interface

An assistant message requesting a tool call (e.g. to edit the tree).

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/tree-agent/alpha.

For more information about our API support guarantees, see here.

Signature​

export interface TreeAgentToolCallMessage

Properties​

PropertyAlertsModifiersTypeDescription
roleAlphareadonly"tool_call"Identifies the message type within a TreeAgentChatMessage array.
toolArgsAlphareadonlyRecord<string, unknown>The arguments to the tool call, as returned by the LLM.
toolCallIdAlphaoptional, readonlystringAn optional identifier for this tool invocation, used to correlate with the result.
toolNameAlphareadonlystringThe name of the tool being called.

Property Details​

role​

Identifies the message type within a TreeAgentChatMessage array.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

readonly role: "tool_call";

Type: "tool_call"

toolArgs​

The arguments to the tool call, as returned by the LLM.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

readonly toolArgs: Record<string, unknown>;

Type: Record<string, unknown>

toolCallId​

An optional identifier for this tool invocation, used to correlate with the result.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

readonly toolCallId?: string;

Type: string

toolName​

The name of the tool being called.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

readonly toolName: string;

Type: string