Normandy.Agents.Model protocol (normandy v0.2.0)
View SourceProtocol for LLM model interactions.
Defines the interface for conversing with language models, supporting both structured outputs and tool calling capabilities.
Summary
Functions
Converse with the model, optionally providing tool schemas.
Types
@type t() :: term()
All the types that implement this protocol.
Functions
Converse with the model, optionally providing tool schemas.
Parameters
- config: Model client configuration
- model: Model identifier
- temperature: Sampling temperature (0.0-1.0)
- max_tokens: Maximum tokens to generate
- messages: List of conversation messages
- response_model: Expected response schema
- opts: Optional keyword list with :tools key for tool schemas
Returns
Structured response conforming to response_model