Versions in this module Expand all Collapse all v0 v0.40.0 Apr 19, 2026 v0.38.0 Apr 14, 2026 Changes in this version + var Classify classifyFactory + var Generate generateFactory + var Intent intentFactory + func Temp(t float64) *float64 + type ClassifyParams struct + Hint string + Labels []string + Model string + type ClassifyResult struct + Label string + type Factory interface + New func(provider llm.Provider, params F) Operation[I, O] + func NewFactory[F, I, O any](fn func(llm.Provider, F) Operation[I, O]) Factory[F, I, O] + type GenerateParams struct + Model string + SystemPrompt string + Temperature *float64 + type GenerateResult struct + Text string + type IntentDef struct + Description string + Examples []string + Name string + type IntentParams struct + Hint string + Intents []IntentDef + Model string + type IntentResult struct + Name string + type MapFactory struct + func (MapFactory[O]) New(provider llm.Provider, params MapParams) Operation[string, O] + type MapMode string + const MapModeJSON + const MapModeTool + type MapParams struct + Hint string + Mode MapMode + Model string + type Operation interface + Run func(ctx context.Context, input I) (*O, error) + func NewMap[O any](provider llm.Provider, params MapParams) Operation[string, O] + type OperationFunc func(context.Context, I) (*O, error) + func (f OperationFunc[I, O]) Run(ctx context.Context, input I) (*O, error)