Skip to main content
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.
Parameters: Returns:
  • WorkflowRunOutput when stream=False
  • AsyncIterator[WorkflowRunOutputEvent] when stream=True

acontinue_run

Continue a paused workflow run through the AgentOS protocol.
Parameters: Returns:
  • WorkflowRunOutput when stream=False
  • AsyncIterator[WorkflowRunOutputEvent] when stream=True

acancel_run

Cancel a running workflow execution through the AgentOS protocol.
Parameters: Returns: bool - True if successfully cancelled

get_workflow_config

Get the workflow configuration from the remote server (always fetches fresh).
Returns: WorkflowResponse

refresh_config

Force refresh the cached workflow configuration through the AgentOS protocol.
Returns: 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:
See AgentOS Gateway for more details.

Streaming Example

Error Handling

Authentication

For authenticated AgentOS instances, pass the auth_token parameter:

Notes

Remote Workflows via WebSocket are not yet supported. Use HTTP streaming instead.