Get Agent ID • AI Agent SDK
get_agent_id: Resolve agent ID for a given message context.
get_agent_id
Method
</div>
This is a method of the ChannelRouteConfig class in the config module.
Resolve agent ID for a given message context.
Signature
def get_agent_id(context: str) -> strParameters
ParamField
strMessage context (dm, group, channel, default)
Returns
ResponseField
strThe agent ID for the given context, falling back to “default” route.
Source
View on GitHubpraisonaiagents/gateway/config.py at line 1434