Effect CommunityEC
Effect Communityβ€’6mo agoβ€’
16 replies
paulofaria

Error with `generateObject` in @effect/ai-google using gemini-2.5-flash

Hey, @Maxwell Brown . First time posting here. Hope everything is well with you, mate. Hey, I'm trying to use @effect/ai-google with gemini-2.5-flash and I'm getting this error message. I was using @effect/ai-openai before and everything was working neatly. Does the error message below means the effect google client/model just doesn't support generateObject yet and I should wait? Or is it a bug? Or something else?
{
  _id: 'FiberFailure',
  cause: {
    _id: 'Cause',
    _tag: 'Fail',
    failure: {
      module: 'AiLanguageModel',
      method: 'generateObject',
      description: "Tool call 'generateObject' not found in model response",
      _tag: 'AiError'
    }
  },
  stacks: []
}
Was this page helpful?