tool • Rust AI Agent SDK

tool: Create a tool response message

tool

Method

</div>

This is a method of the Message class in the llm module.

Create a tool response message

Diagram

uses

returns

Agent

Tool: tool

Result

Signature

python
def tool(tool_call_id: impl Into<String>, content: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation