With Agent • Rust AI Agent SDK

with_agent: Set agent name

with_agent

Method

</div>

This is a method of the TaskOutput class in the task module.

Set agent name

Diagram

Input Data

Agent: with_agent

Output Result

Signature

python
def with_agent(mut self, name: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation