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

# execute • AI Agent SDK

> execute: Execute a prompt with the runtime.

# execute

Method

> This is a method of the [**RuntimeProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/RuntimeProtocol.md) class in the [**resolve**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/resolve.md) module.

Execute a prompt with the runtime.

## Signature

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

## Parameters

**prompt** `str` *required*

No description available.

### Returns

**Returns** `Any`

The result of the operation.

## Used By

* [`CodeAgent.execute_code`](../functions/CodeAgent-execute_code)
* [`CodeAgent.aexecute`](../functions/CodeAgent-aexecute)
* [`MiddlewareManager.execute_model_call`](../functions/MiddlewareManager-execute_model_call)
* [`MiddlewareManager.execute_tool_call`](../functions/MiddlewareManager-execute_tool_call)
* [`fire_hook`](../functions/fire_hook)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/resolve.py#L24)
>
> `praisonaiagents/runtime/resolve.py` at line 24


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