<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[agents](../../) / [Exports](../modules) / IPluginExecutionResult

# Interface: IPluginExecutionResult

Plugin execution result for all plugins

## Table of contents

### Properties

- [response](IPluginExecutionResult#response)
- [content](IPluginExecutionResult#content)
- [duration](IPluginExecutionResult#duration)
- [tokensUsed](IPluginExecutionResult#tokensused)
- [toolsExecuted](IPluginExecutionResult#toolsexecuted)
- [success](IPluginExecutionResult#success)
- [usage](IPluginExecutionResult#usage)
- [toolCalls](IPluginExecutionResult#toolcalls)
- [results](IPluginExecutionResult#results)
- [error](IPluginExecutionResult#error)
- [metadata](IPluginExecutionResult#metadata)

## Properties

### response

• `Optional` **response**: `string`

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:68](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L68)

---

### content

• `Optional` **content**: `string`

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:69](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L69)

---

### duration

• `Optional` **duration**: `number`

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:70](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L70)

---

### tokensUsed

• `Optional` **tokensUsed**: `number`

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:71](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L71)

---

### toolsExecuted

• `Optional` **toolsExecuted**: `number`

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:72](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L72)

---

### success

• `Optional` **success**: `boolean`

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:73](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L73)

---

### usage

• `Optional` **usage**: `Object`

#### Type declaration

| Name                | Type     |
| :------------------ | :------- |
| `totalTokens?`      | `number` |
| `promptTokens?`     | `number` |
| `completionTokens?` | `number` |

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:74](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L74)

---

### toolCalls

• `Optional` **toolCalls**: \{ `id?`: `string` ; `name?`: `string` ; `arguments?`: `Record`\<`string`, `string` \| `number` \| `boolean`\> ; `result?`: `null` \| `string` \| `number` \| `boolean` }[]

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:76](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L76)

---

### results

• `Optional` **results**: \{ `id?`: `string` ; `type?`: `string` ; `data?`: `null` \| `string` \| `number` \| `boolean` ; `success?`: `boolean` }[]

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:83](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L83)

---

### error

• `Optional` **error**: `Error`

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:89](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L89)

---

### metadata

• `Optional` **metadata**: `Record`\<`string`, `string` \| `number` \| `boolean` \| `Date`\>

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:91](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L91)
