Re-exports§
pub use crate::agent::economics::SessionEconomics;pub use crate::agent::economics::ToolRecord;
Structs§
- Chat
Message - OpenAI-compatible chat message. Content can be a string (legacy) or a Vec of ContentPart (multimodal).
- Image
UrlSource - Inference
Engine - Token
Usage - Tool
Call Fn - Tool
Call Response - Tool
Definition - Tool
Function - Tool
Metadata
Enums§
- Content
Part - Inference
Event - McpRuntime
State - Message
Content - Operator
Checkpoint State - Provider
Runtime State - Tool
Category
Functions§
- estimate_
message_ batch_ tokens - estimate_
prompt_ pressure - extract_
native_ tool_ calls - Extract native Gemma-4 <|tool_call|> tags from text. Format: <|tool_call|>call:func_name{key:<|“|>value<|”|>, key2:value2}<tool_call|>
- extract_
think_ block - is_
compact_ context_ window_ pub - is_
gemma4_ model_ name - normalize_
tool_ argument_ string - strip_
native_ tool_ call_ text - strip_
think_ blocks - tool_
metadata_ for_ name