Versions in this module Expand all Collapse all v0 v0.12.0 Jul 29, 2026 Changes in this version + type Builder struct + func NewBuilder(info Info) *Builder + func (b *Builder) LLMSpec() (*LLMSpec, error) + type Call struct + func NewCall[Req, Resp any](name string, reqCodec codex.Codec[Req], respCodec codex.Codec[Resp], ...) Call[Req, Resp] + func (c Call[Req, Resp]) ClientHandle() (*CallHandle[Req, Resp], error) + func (c Call[Req, Resp]) Register(b *Builder) (*CallHandle[Req, Resp], error) + type CallHandle struct + DecodeResponse func(raw []byte) (Resp, error) + EncodeRequest func(req Req) (string, error) + Name string + ResponseSchema json.RawMessage + SystemPrompt string + type CallMeta struct + Description string + Tags []string + type CallOpt interface + type CallSpec struct + Description string + Name string + RequestSchema json.RawMessage + ResponseSchema json.RawMessage + SystemPrompt string + Tags []string + type IncludeRequestSchemaOpt struct + func IncludeRequestSchema() IncludeRequestSchemaOpt + type Info struct + Name string + Version string + type LLMSpec struct + Calls []CallSpec + Name string + Version string + type ResponseDecodeError struct + Err error + Name string + Raw []byte + func (e ResponseDecodeError) Error() string + func (e ResponseDecodeError) LogValue() slog.Value + func (e ResponseDecodeError) Unwrap() error + type SystemPromptFileError struct + Err error + Path string + func (e SystemPromptFileError) Error() string + func (e SystemPromptFileError) LogValue() slog.Value + func (e SystemPromptFileError) Unwrap() error + type SystemPromptFileOpt struct + func SystemPromptFile(path string) SystemPromptFileOpt + type SystemPromptOpt struct + func SystemPrompt(text string) SystemPromptOpt + type UserMessageOpt struct + func UserMessage[Req any](fn func(Req) (string, error)) UserMessageOpt[Req]