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

# executeAction

> Documentation for executeAction

[**solana-agent-kit v1.3.7**](../README.md)

***

[solana-agent-kit](../README.md) / executeAction

# Function: executeAction()

> **executeAction**(`action`, `agent`, `input`): `Promise`\<`Record`\<`string`, `any`>>

Defined in: [utils/actionExecutor.ts:20](https://github.com/sendaifun/solana-agent-kit/blob/6acfa958180602da3c2d2ac883bf660ca90dba2f/src/utils/actionExecutor.ts#L20)

Execute an action with the given input

## Parameters

### action

`Action`

### agent

[`SolanaAgentKit`](../classes/SolanaAgentKit.md)

### input

`Record`\<`string`, `any`>

## Returns

`Promise`\<`Record`\<`string`, `any`>>
