Kind: Class
Source: atloria-monorepo/libs/agent-core/src/runtime/vercel-ai-adapter.ts
Implements: IModelProvider
Methods
| Method | Signature | Returns |
|---|---|---|
getResponse | getResponse(request: ModelProviderRequest) | Promise<ModelProviderResponse> |
getStreamedResponse | getStreamedResponse(request: ModelProviderRequest) | AsyncIterable<unknown> |
getProfile | getProfile() | ModelCapabilityProfile |
Where it refuses work
VercelAIModelProviderstops the work with an early return whenitem.role === 'tool'.VercelAIModelProviderstops the work with an early return whenitem.role === 'assistant' && item.toolCalls?.length.
When something fails
VercelAIModelProviderhandles failure in 1 place: it turns it into a return value in all 1.
Was this page helpful?