Skip to content

Bedrock Agentcore  >  Structures  >  ToolResultStructuredContent

ToolResultStructuredContent

Structure Class

ToolResultStructuredContent dataclass

Contains structured content from a tool result.

Attributes

execution_time class-attribute instance-attribute
execution_time: float | None = None

The execution time of the tool operation in milliseconds.

exit_code class-attribute instance-attribute
exit_code: int | None = None

The exit code from the tool execution.

stderr class-attribute instance-attribute
stderr: str | None = None

The standard error output from the tool execution.

stdout class-attribute instance-attribute
stdout: str | None = None

The standard output from the tool execution.

task_id class-attribute instance-attribute
task_id: str | None = None

The identifier of the task that produced the result.

task_status class-attribute instance-attribute
task_status: TaskStatus | None = None

The status of the task that produced the result.