Skip to main content
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

ParameterTypeDefaultDescription
base_urlstrRequiredBase URL of the remote AgentOS instance (e.g., "http://localhost:7777")
team_idstrRequiredID of the remote team to execute
timeoutfloat300.0Request timeout in seconds
config_ttlfloat300.0Time-to-live for cached configuration in seconds

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.
Parameters:
ParameterTypeDefaultDescription
inputstr | List | Dict | Message | BaseModelRequiredThe input message for the team
streamboolFalseWhether to stream the response
user_idOptional[str]NoneUser ID for the run
session_idOptional[str]NoneSession ID for context persistence
session_stateOptional[Dict]NoneSession state dictionary
imagesOptional[Sequence[Image]]NoneImages to include
audioOptional[Sequence[Audio]]NoneAudio to include
videosOptional[Sequence[Video]]NoneVideos to include
filesOptional[Sequence[File]]NoneFiles to include
stream_eventsOptional[bool]NoneWhether to stream events
retriesOptional[int]NoneNumber of retries
knowledge_filtersOptional[Dict]NoneFilters for knowledge search
add_history_to_contextOptional[bool]NoneAdd history to context
dependenciesOptional[Dict]NoneDependencies dictionary
metadataOptional[Dict]NoneMetadata dictionary
auth_tokenOptional[str]NoneJWT token for authentication
Returns:
  • TeamRunOutput when stream=False
  • AsyncIterator[TeamRunOutputEvent] when stream=True

cancel_run

Cancel a running team execution.
Parameters:
ParameterTypeDefaultDescription
run_idstrRequiredID of the run to cancel
auth_tokenOptional[str]NoneJWT token for authentication
Returns: bool - True if successfully cancelled

get_team_config

Get the team configuration from the remote server (always fetches fresh).
Returns: TeamResponse

refresh_config

Force refresh the cached team configuration.
Returns: TeamResponse

A2A Protocol Support

RemoteTeam can connect to any A2A-compatible server using the protocol="a2a" parameter:

Connecting to Agno A2A Servers

Protocol Options

Protocola2a_protocolUse Case
"agentos"N/ADefault. Connect to Agno AgentOS REST API
"a2a""rest"Connect to A2A servers using REST endpoints
"a2a""json-rpc"Connect to Google ADK or pure JSON-RPC A2A servers

Using in AgentOS Gateway

Remote teams can be registered in a local AgentOS to create a gateway:
See AgentOS Gateway for more details.

Streaming Example

Error Handling

Authentication

For authenticated AgentOS instances, pass the auth_token parameter: