Expand description
Provider-neutral outbound model-request boundary.
The request DTOs in this module are consumed by the TUI transport today
and are intentionally free of terminal, HTTP, or provider-client state.
Keeping the logical request in codewhale-core lets a headless session
prepare the same serializable value before the existing TUI client applies
provider-specific wire shaping.
Structs§
- Cache
Control - Cache control metadata for tool definitions and blocks.
- Image
UrlContent - OpenAI-compatible image URL payload inside a multimodal message.
- Message
- A chat message with role and content blocks.
- Message
Request - Request payload handed to the model-client preparation seam.
- Opaque
Reasoning State - Provider-owned reasoning continuity that is safe to replay only on the
exact originating API and model. The encrypted payload is deliberately
separate from readable
ContentBlock::Thinkingtext. - Primary
Turn Request - Inputs that distinguish a primary agent-turn request.
- System
Block - A structured system prompt block.
- Tool
- Tool definition exposed to the model.
- Tool
Caller - Metadata describing who invoked a tool call.
Enums§
- Content
Block - A single content block inside a message.
- System
Prompt - System prompt representation (plain text or structured blocks).
Constants§
- INTERRUPTED_
ASSISTANT_ CONTEXT_ PREFIX - Prefix attached to interrupted assistant output when it is replayed as context.
- INTERRUPTED_
ASSISTANT_ ROLE - Internal role used for assistant text that was visible before a turn was interrupted.
Functions§
- prepare_
primary_ turn_ request - Prepare the provider-neutral request for a primary agent turn.