RemoteWorkflow allows you to run workflows that are hosted on a remote AgentOS instance. It provides the same interface as a local workflow, making it easy to integrate remote workflows into your applications.
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
cancel_run
Cancel a running workflow execution.
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.
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: