Hacker News new | ask | show | jobs
instructor-go – Structured LLM Outputs in Go (github.com)
5 points by h0rv 928 days ago
1 comments

instructor-go is a port of the popular Python package https://github.com/jxnl/instructor.

This implementation uses `jsonschema` and Go struct tags to send data and schema information to the model to return the appropriate response schema.

Currently, OpenAI and Anthropic are supported, and you can see all examples of different capabilities here: https://github.com/instructor-ai/instructor-go/tree/main/exa....

This is in early development and would love some feedback.

Thanks for checking it out!