Skip to main content

Crate argentor_core

Crate argentor_core 

Source
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 for Result<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.
ToolCall
A request from the LLM to invoke a specific tool.
ToolResult
The result returned after executing a ToolCall.

Enums§

ArgentorError
Top-level error type for the Argentor framework.
Role
The role of the participant that authored a Message.

Type Aliases§

ArgentorResult
A convenience Result alias using ArgentorError.