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

# run • Rust AI Agent SDK

> run: Run a workflow from a YAML file

# run

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**run**](../modules/run) module.

Run a workflow from a YAML file

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def run(file: String, verbose: bool) -> Result<()>
```

## Parameters

<ParamField query="file" type="String" required={true}>
  No description available.
</ParamField>

<ParamField query="verbose" type="bool" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Result<()>">
  The result of the operation.
</ResponseField>

## Uses

* `exists`
* `read_to_string`
* `with_context`
* `from_str`
* `as_deref`
* `unwrap_or`
* `unwrap_or_else`
* `name`
* `instructions`
* `model`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai-cli/src/commands/run.rs#L65">
  `praisonai-cli/src/commands/run.rs` at line 65
</Card>
