Skip to content

agent-playground / Exports / CodeExecutor

Class: CodeExecutor

Table of contents

Constructors

Methods

Constructors

constructor

new CodeExecutor(config?): CodeExecutor

Parameters

NameType
config?Partial<IPlaygroundConfig>

Returns

CodeExecutor

Defined in

agent-playground/src/lib/playground/code-executor.ts:29

Methods

executeCode

executeCode(code, provider): Promise<ICodeExecutionResult>

Parameters

NameType
codestring
providerstring

Returns

Promise<ICodeExecutionResult>

Defined in

agent-playground/src/lib/playground/code-executor.ts:43


sendMessage

sendMessage(message): Promise<string>

Parameters

NameType
messagestring

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

Defined in

agent-playground/src/lib/playground/code-executor.ts:270

Released under the MIT License.