> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentium.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Remote Workflows

> Execute remote workflow endpoints

## Overview

`A2ARemoteWorkflow` wraps a remote workflow endpoint, making it callable like a local workflow.

## Quick Start

```typescript theme={null}
import { A2ARemoteWorkflow } from "@agentium/core";

const remoteWorkflow = new A2ARemoteWorkflow({
  url: "https://api.example.com",
  name: "data-pipeline",
});

const result = await remoteWorkflow.run({ startDate: "2024-01-01" });
console.log(result);
```

## Configuration

| Option      | Type                     | Default             | Description                   |
| ----------- | ------------------------ | ------------------- | ----------------------------- |
| `url`       | `string`                 | required            | Base URL of the remote server |
| `name`      | `string`                 | `"remote-workflow"` | Workflow name                 |
| `headers`   | `Record<string, string>` | —                   | Custom headers                |
| `timeoutMs` | `number`                 | `120000`            | Request timeout               |
