Skip to main content

TreeAgentChatMessage TypeAlias

A role-tagged message in a tree agent conversation.

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 type TreeAgentChatMessage = TreeAgentSystemMessage | TreeAgentUserMessage | TreeAgentAssistantMessage | TreeAgentToolCallMessage | TreeAgentToolResultMessage;

Remarks

The agent owns the conversation history as an array of these messages and passes them to invoke(history).