> ## 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.

# Execution drivers

> Adapt an Agent, Team, or Workflow and implement controlled execution.

Adapt an Agent, Team, or Workflow and implement controlled execution. Read the [execution drivers guide](/harness/drivers) for examples, defaults, and behavior.

These declarations cover every public export in this category. Import from `@agentium/harness`. Types such as `ChatMessage`, `RunContext`, and `ExecutionServices` come from [`@agentium/core`](/api-reference/core). A `?` marks an optional field.

## agentDriver

```typescript theme={null}
/** Passing an Agent borrows it. Passing configuration creates/disposes a run-owned
 * Agent and applies the definition's explicit defaults here, outside core. */
export declare function agentDriver(agent: Agent | AgentConfig, config?: {
    stream?: boolean;
}): ExecutionDriver;
```

## teamDriver

```typescript theme={null}
/** Remote Team members fail explicitly because their effects cannot be intercepted locally. */
export declare function teamDriver(team: Team): ExecutionDriver;
```

## workflowDriver

```typescript theme={null}
/** Input defaults to a JSON object patch over the Workflow constructor's initial state. */
export declare function workflowDriver<T extends Record<string, unknown>>(workflow: Workflow<T>, config?: {
    input?: (input: HarnessRunRequest["input"]) => Partial<T>;
}): ExecutionDriver;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.