You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { vertex } from '@ai-sdk/google-vertex';
export { createAgent } from '@statelyai/agent';
createAgent({
model: vertex('gemini-1.5-pro'),
...
});
but it gives the following type error:
Type '{ type: "reasoning"; textDelta: string; }' is not assignable to type 'LanguageModelV1StreamPart'.
Type '{ type: "reasoning"; textDelta: string; }' is not assignable to type '{ type: "text-delta"; textDelta: string; }'.
Types of property 'type' are incompatible.
Type '"reasoning"' is not assignable to type '"text-delta"'
However, if I declare as any the agent seems to work as expected so it is maybe only a typing issue?
Activity
davidkpiano commentedon Jan 25, 2025
Try using
@stately/agent@nextddoria921 commentedon Jan 28, 2025
I'm running into the same issue, except I'm using
import { bedrock } from "@ai-sdk/amazon-bedrock";For reference I'm running
@davidkpiano I'm guessing if you update the ai-sdk deps to the latest it will fix the type error.
davidkpiano commentedon Jan 28, 2025
Which version are you using of
@statelyai/agent?ddoria921 commentedon Jan 28, 2025
@davidkpiano