Expand description
Core types and error definitions for the Argentor framework.
This crate provides the foundational types shared across all Argentor crates, including error handling, message representations, and tool call abstractions.
§Main types
ArgentorError— Unified error enum for all Argentor subsystems.ArgentorResult— Convenience alias forResult<T, ArgentorError>.Role— Message role (user, assistant, system, tool).Message— A single message within a conversation session.ToolCall— Represents an LLM-initiated tool invocation request.ToolResult— The result returned after executing a tool call.
Modules§
- approval
- Approval types for human-in-the-loop workflows. Approval types for human-in-the-loop (HITL) workflows.
- correlation
- Distributed correlation context for request tracing across agent boundaries. Distributed correlation context for request tracing across agent boundaries.
- data_
residency - Data residency configuration for multi-region compliance (GDPR, HIPAA, etc.). Data residency configuration for multi-region compliance.
- error_
aggregator - Error aggregation, deduplication, and trending for production diagnostics. Error aggregation, deduplication, and trending for production diagnostics.
- event_
bus - Pub/sub event bus for decoupled component communication. Pub/sub event bus for decoupled component communication.
- metrics_
export - Multi-format metrics export for monitoring integration. Multi-format metrics export for monitoring integration.
- telemetry
- OpenTelemetry distributed tracing support. OpenTelemetry distributed tracing support for the Argentor framework.
Structs§
- Message
- A single message exchanged within a conversation session.
- Tool
Call - A request from the LLM to invoke a specific tool.
- Tool
Result - The result returned after executing a
ToolCall.
Enums§
- Argentor
Error - Top-level error type for the Argentor framework.
- Role
- The role of the participant that authored a
Message.
Type Aliases§
- Argentor
Result - A convenience
Resultalias usingArgentorError.