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

llms: fix `(mc *MessageContent) UnmarshalJSON` #869

Closed AugustDev closed 2 weeks ago

AugustDev commented 4 weeks ago

This PR allows to UnmarshalJSON MessageContent.

PR Checklist

tmc commented 2 weeks ago

Thanks! I extended this and in-scoped YAML and JSON in #880

tmc commented 2 weeks ago

Closing here as 880 included these changes, thanks!