tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.75k stars 521 forks source link

feat(googleai): add support for array type in convertToolSchemaType #865

Closed johnknott closed 2 weeks ago

johnknott commented 1 month ago

🔧 Added support for 'array' type in the convertToolSchemaType function to map it to genai.TypeArray. This enhances the functionality by enabling correct type handling for array types.