agent-playground / Exports / CodeExecutor
Class: CodeExecutor
Table of contents
Constructors
Methods
Constructors
constructor
• new CodeExecutor(config?): CodeExecutor
Parameters
| Name | Type |
|---|---|
config? | Partial<IPlaygroundConfig> |
Returns
Defined in
agent-playground/src/lib/playground/code-executor.ts:29
Methods
executeCode
▸ executeCode(code, provider): Promise<ICodeExecutionResult>
Parameters
| Name | Type |
|---|---|
code | string |
provider | string |
Returns
Promise<ICodeExecutionResult>
Defined in
agent-playground/src/lib/playground/code-executor.ts:43
sendMessage
▸ sendMessage(message): Promise<string>
Parameters
| Name | Type |
|---|---|
message | string |
Returns
Promise<string>
Defined in
agent-playground/src/lib/playground/code-executor.ts:215
getContext
▸ getContext(): undefined | IAgentContext
Returns
undefined | IAgentContext
Defined in
agent-playground/src/lib/playground/code-executor.ts:266
reset
▸ reset(): void
Returns
void