Expand description
LLM request codec types and trait.
This module defines the AnnotatedLlmRequest type system for structured
LLM request representation and the crate::codec::traits::LlmCodec trait
for bidirectional translation between opaque crate::api::llm::LlmRequest
payloads and typed form.
Structs§
- Annotated
LlmRequest - Structured view of an LLM request, produced by a Codec from opaque
LlmRequestcontent. - Function
Call - A function call within a tool call.
- Function
Definition - A function definition within a tool definition.
- Generation
Params - Normalized generation parameters across providers.
- Tool
Call - A tool call requested by the assistant.
- Tool
Choice Function - A specific tool choice that forces a named function.
- Tool
Choice Function Name - The name component of a specific tool choice.
- Tool
Definition - A tool definition (function schema) available to the model.
Enums§
- Content
Part - A single content part within a multimodal message.
- Message
- A single message in a conversation, tagged by role.
- Message
Content - Message content: either a plain string or multimodal parts array.
- Tool
Choice - Tool choice control: how the model should use available tools.