Expand description
Convenience module containing the most commonly used types and functions.
Import with use open_agent::prelude::*; to get everything you need for typical usage.
This includes:
- Configuration: AgentOptions, AgentOptionsBuilder
- Client: Client, query()
- Content: ContentBlock, TextBlock, ToolUseBlock
- Tools: Tool, tool()
- Hooks: Hooks, HookDecision, hook event types
- Errors: Error, Result
Re-exportsยง
pub use crate::AgentOptions;pub use crate::AgentOptionsBuilder;pub use crate::BaseUrl;pub use crate::Client;pub use crate::ContentBlock;pub use crate::Error;pub use crate::HookDecision;pub use crate::Hooks;pub use crate::ModelName;pub use crate::PostToolUseEvent;pub use crate::PreToolUseEvent;pub use crate::Result;pub use crate::Temperature;pub use crate::TextBlock;pub use crate::Tool;pub use crate::ToolUseBlock;pub use crate::UserPromptSubmitEvent;pub use crate::query;pub use crate::tool;