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

# Get Version • AI Agent SDK

> get_version: Get the version string from pyproject.toml.

# get\_version

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

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

Get the version string from pyproject.toml.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_version() -> str
```

### Returns

<ResponseField name="Returns" type="str">
  Version string (e.g., "1.6.52")
</ResponseField>

### Exceptions

<AccordionGroup>
  <Accordion title="RuntimeError">
    If version cannot be found or parsed
  </Accordion>
</AccordionGroup>

## Uses

* `Path`
* `pyproject_path.exists`
* `RuntimeError`
* `pyproject_path.read_text`
* `re.search`
* `match.group`
* `warnings.warn`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/_version.py#L12">
  `praisonaiagents/_version.py` at line 12
</Card>
