RemoteTeam allows you to run teams that are hosted on a remote AgentOS instance. It provides the same interface as a local team, making it easy to integrate remote teams into your applications.
Installation
Basic Usage
Parameters
Properties
id
Returns the team ID.
name
Returns the team’s name from the remote configuration.
description
Returns the team’s description from the remote configuration.
role
Returns the team’s role from the remote configuration.
tools
Returns the team’s tools as a list of dictionaries.
db
Returns a RemoteDb instance if the team has a database configured.
knowledge
Returns a RemoteKnowledge instance if the team has knowledge configured.
Methods
arun
Execute the remote team asynchronously.
Returns:
TeamRunOutputwhenstream=FalseAsyncIterator[TeamRunOutputEvent]whenstream=True
cancel_run
Cancel a running team execution.
Returns:
bool - True if successfully cancelled
get_team_config
Get the team configuration from the remote server (always fetches fresh).
TeamResponse
refresh_config
Force refresh the cached team configuration.
TeamResponse
A2A Protocol Support
RemoteTeam can connect to any A2A-compatible server using the protocol="a2a" parameter:
Connecting to Agno A2A Servers
Protocol Options
Using in AgentOS Gateway
Remote teams can be registered in a local AgentOS to create a gateway:Streaming Example
Error Handling
Authentication
For authenticated AgentOS instances, pass theauth_token parameter: