RemoteWorkflow runs workflows hosted on a remote AgentOS instance or A2A-compatible server.
Installation
Basic Usage
Parameters
Properties
id
Returns the workflow ID.
name
Returns the workflow’s name from the remote configuration.
description
Returns the workflow’s description from the remote configuration.
db
Returns a RemoteDb instance if the workflow has a database configured.
Methods
arun
Execute the remote workflow asynchronously.
Returns:
WorkflowRunOutputwhenstream=FalseAsyncIterator[WorkflowRunOutputEvent]whenstream=True
acontinue_run
Continue a paused workflow run through the AgentOS protocol.
Returns:
WorkflowRunOutputwhenstream=FalseAsyncIterator[WorkflowRunOutputEvent]whenstream=True
acancel_run
Cancel a running workflow execution through the AgentOS protocol.
Returns:
bool - True if successfully cancelled
get_workflow_config
Get the workflow configuration from the remote server (always fetches fresh).
WorkflowResponse
refresh_config
Force refresh the cached workflow configuration through the AgentOS protocol.
WorkflowResponse
A2A Protocol Support
RemoteWorkflow can connect to any A2A-compatible server using the protocol="a2a" parameter:
Connecting to Agno A2A Servers
Protocol Options
Using in AgentOS Gateway
Remote workflows can be registered in a local AgentOS to create a gateway:Streaming Example
Error Handling
Authentication
For authenticated AgentOS instances, pass theauth_token parameter: