router.user
- class agentopera.router.user.UserManager[source]
Bases:
object
- async classmethod ensure_agents_registered_for_user(user_id: str, runtime: DistAgentEngine)[source]
- class agentopera.router.user.USER_CONTEXT[source]
Bases:
object
- async classmethod get_agent_metadata(user_id: str) List[UserAgentInfo] [source]
Retrieves and caches agent metadata for the given user by combining: - Developer-owned agents - Subscribed agents
If both sources contain agents with the same agent_name, the developer-owned version is preferred.
- Parameters:
user_id (str) – The ID of the user.
- Returns:
A list of unique structured agent metadata.
- Return type:
List[UserAgentInfo]