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: Add improved yaml and json marshaling #880

Closed tmc closed 2 weeks ago

tmc commented 2 weeks ago

This adds standard yaml marshaling of llm.MessageContent types with special casing for single-text-part messages.