Interface: RobotaCore
Core execution interface for Robota Contains only essential execution methods
Hierarchy
RobotaCore
Table of contents
Methods
Methods
run
▸ run(prompt
, options?
): Promise
<string
>
Execute AI conversation with prompt
Parameters
Name | Type | Description |
---|---|---|
prompt | string | User input text |
options? | RunOptions | Optional run configuration |
Returns
Promise
<string
>
Promise resolving to AI response text
Defined in
runStream
▸ runStream(prompt
, options?
): Promise
<AsyncIterable
<StreamingResponseChunk
, any
, any
>>
Execute AI conversation with streaming response
Parameters
Name | Type | Description |
---|---|---|
prompt | string | User input text |
options? | RunOptions | Optional run configuration |
Returns
Promise
<AsyncIterable
<StreamingResponseChunk
, any
, any
>>
Promise resolving to async iterable of response chunks
Defined in
close
▸ close(): Promise
<void
>
Release all resources and close connections
Returns
Promise
<void
>
Promise that resolves when cleanup is complete