temporal-agent-rs 0.2.0-alpha.1

Durable AI agent execution on Temporal using AutoAgents traits.
Documentation
//! Glob-importable prelude.
//!
//! Re-exports the types most users touch when wiring an agent worker, plus a
//! handful of AutoAgents traits ([`ToolT`], [`LLMProvider`], [`ToolRuntime`],
//! [`ToolCallError`]) that show up in user code via trait bounds and tool
//! `execute` signatures. These re-exports are intentional public surface — a
//! breaking change to them is a breaking change to this crate.
//!
//! ```ignore
//! use temporal_agent_rs::prelude::*;
//! ```

pub use crate::activities::AgentActivities;
pub use crate::builder::AgentWorkerBuilder;
pub use crate::error::AgentError;
pub use crate::memory::{MemoryProvider, SlidingWindowMemory};
pub use crate::state::{
    AgentInput, AgentOutput, AgentState, LlmResponse, Message, Role, StopReason, ToolCall,
    ToolResult, ToolSchema,
};
pub use crate::tool::{ToolRegistry, ToolRegistryBuilder};
pub use crate::workflow::AgentWorkflow;

pub use autoagents_core::tool::{ToolCallError, ToolRuntime, ToolT};
pub use autoagents_llm::LLMProvider;
pub use autoagents_llm::chat::StructuredOutputFormat;

// Pipeline composition (re-exports from `autoagents_llm`).
pub use autoagents_llm::pipeline::PipelineBuilder;

// Production primitives: cache and fallback.
//
// Retry is intentionally NOT re-exported. Temporal activity `RetryPolicy`
// owns retry semantics; layering retry below an activity creates nested
// retries that are invisible to Temporal history, amplify rate-limit
// pressure, and don't honour workflow cancellation. Configure retry on
// your activity options instead.
pub use autoagents_llm::optim::{
    CacheConfig, CacheLayer, ChatCacheKeyMode, FallbackConfig, FallbackLayer,
    default_is_fallbackable,
};