Register Agent • Rust AI Agent SDK

register_agent: Register an agent with the gateway.

register_agent

Method

</div>

This is a method of the GatewayProtocol class in the gateway module.

Register an agent with the gateway.

Diagram

Input Data

Agent: register_agent

Output Result

Signature

python
def register_agent(&mut self, agent: Arc<Agent>, agent_id: Option<String>) -> String

Parameters

ParamField Arc&lt;Agent&gt;

No description available.

ParamField Option&lt;String&gt;

No description available.

Returns

ResponseField String

The result of the operation.


Related Documentation