AIAgentEnvironmentToolResultToAgentContent

data class AIAgentEnvironmentToolResultToAgentContent(val toolCallId: String?, val toolName: String, val agentId: String, val message: String, val toolResult: ToolResult? = null) : EnvironmentToolResultToAgentContent(source)

Represents the content of tool result messages sent to an agent after a tool call is executed within the local environment. This provides the result of the tool execution alongside metadata such as the tool's name, the related agent identifier, and the tool call identifier if applicable.

Constructors

constructor(toolCallId: String?, toolName: String, agentId: String, message: String, toolResult: ToolResult? = null)

Properties

Link copied to clipboard
open override val agentId: String

Identifier for the agent that receives this message.

Link copied to clipboard
open override val message: String

Output message describing the result of the tool execution.

Link copied to clipboard
open override val toolCallId: String?

Identifier for the specific tool call, used when invoking multiple tools simultaneously.

Link copied to clipboard
open override val toolName: String

Name of the tool associated with the result.

Link copied to clipboard
val toolResult: ToolResult? = null

The result of the tool call, encapsulated as an optional ToolResult object.