Skip to content

core / Exports / RobotaCore

Interface: RobotaCore

Core execution interface for Robota Contains only essential execution methods

Hierarchy

Table of contents

Methods

Methods

run

run(prompt, options?): Promise<string>

Execute AI conversation with prompt

Parameters

NameTypeDescription
promptstringUser input text
options?RunOptionsOptional run configuration

Returns

Promise<string>

Promise resolving to AI response text

Defined in

interfaces/robota-core.ts:18


runStream

runStream(prompt, options?): Promise<AsyncIterable<StreamingResponseChunk, any, any>>

Execute AI conversation with streaming response

Parameters

NameTypeDescription
promptstringUser input text
options?RunOptionsOptional run configuration

Returns

Promise<AsyncIterable<StreamingResponseChunk, any, any>>

Promise resolving to async iterable of response chunks

Defined in

interfaces/robota-core.ts:27


close

close(): Promise<void>

Release all resources and close connections

Returns

Promise<void>

Promise that resolves when cleanup is complete

Defined in

interfaces/robota-core.ts:34

Released under the MIT License.