37 lines
697 B
Plaintext
Executable File
37 lines
697 B
Plaintext
Executable File
---
|
|
title: "executeAction"
|
|
description: "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`\>\>
|