agents / Exports / AIProviderInstance
Interface: AIProviderInstance
Interface that AI provider instances must implement to work with LocalExecutor
This interface represents the subset of AI provider methods that LocalExecutor needs to delegate to. It's designed to be compatible with existing BaseAIProvider implementations from @robota-sdk packages.
Table of contents
Properties
Methods
Properties
name
• Optional Readonly name: string
Provider name
Defined in
packages/agents/src/executors/local-executor.ts:243
Methods
chat
▸ chat(messages, options?): Promise<UniversalMessage>
Chat completion method
Parameters
| Name | Type |
|---|---|
messages | UniversalMessage[] |
options? | ChatOptions |
Returns
Promise<UniversalMessage>
Defined in
packages/agents/src/executors/local-executor.ts:246
chatStream
▸ chatStream(messages, options?): AsyncIterable<UniversalMessage, any, any>
Streaming chat completion method
Parameters
| Name | Type |
|---|---|
messages | UniversalMessage[] |
options? | ChatOptions |
Returns
AsyncIterable<UniversalMessage, any, any>
Defined in
packages/agents/src/executors/local-executor.ts:249
supportsTools
▸ supportsTools(): boolean
Check if provider supports tools
Returns
boolean
Defined in
packages/agents/src/executors/local-executor.ts:252
validateConfig
▸ validateConfig(): boolean
Validate provider configuration
Returns
boolean
Defined in
packages/agents/src/executors/local-executor.ts:255
dispose
▸ dispose(): Promise<void>
Clean up provider resources
Returns
Promise<void>