Skip to main content

register_agent

Method
This is a method of the GatewayProtocol class in the protocols module.
Register an agent with the gateway.

Signature

def register_agent(agent: 'Agent', agent_id: Optional[str]) -> str

Parameters

agent
Agent
required
The agent to register
agent_id
Optional
Optional custom agent ID

Returns

Returns
str
The agent ID (generated if not provided)

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 295