#![cfg_attr(feature = "test-kit", doc = include_str!("quickstart.md"))]
# \
are longer versions of it."
)]
#![forbid(unsafe_code)]
#![cfg_attr(test, allow(clippy::unwrap_used, clippy::expect_used, clippy::panic))]
#[cfg(doctest)]
#[doc = include_str!("../README.md")]
mod readme {}
pub mod flow {
pub use turnframe_core::case::{CaseKey, CaseRef, Versioned};
pub use turnframe_core::flow::*;
}
pub mod turn {
pub use turnframe_core::turn::*;
pub use turnframe_core::{knowledge, plan, read, reduce, replay, target};
}
pub mod interaction {
pub use turnframe_core::interaction::*;
}
pub mod command {
pub use turnframe_core::command::*;
pub use turnframe_core::policy;
}
pub mod event {
pub use turnframe_core::event::*;
}
pub mod response {
pub use turnframe_core::response::*;
}
pub mod error {
pub use turnframe_core::error::*;
}
pub mod ids {
pub use turnframe_core::ids::*;
}
pub mod observe {
pub use turnframe_core::observe::*;
}
pub mod locale {
pub use turnframe_core::locale::*;
}
pub mod schema {
pub use turnframe_core::hash::*;
pub use turnframe_core::schema::*;
}
pub mod case {
pub use turnframe_core::case::*;
}
pub mod plan {
pub use turnframe_core::plan::*;
}
pub mod understanding {
pub use turnframe_core::understanding::*;
}
pub mod understand {
pub use turnframe_understand::*;
}
pub mod tasks {
pub use turnframe_tasks::*;
}
pub mod policy {
pub use turnframe_core::policy::*;
}
pub mod reduce {
pub use turnframe_core::reduce::*;
}
pub mod target {
pub use turnframe_core::target::*;
}
pub mod read {
pub use turnframe_core::read::*;
}
pub mod knowledge {
pub use turnframe_core::knowledge::*;
}
pub mod operation {
pub use turnframe_core::operation::*;
}
pub mod replay {
pub use turnframe_core::replay::*;
}
pub mod effort {
pub use turnframe_core::effort::*;
}
pub mod runtime {
pub use turnframe_runtime::{
attachments, budget, compose, config, conversation, copy, dispatch, divergence, effort,
execute, interactions, orchestrator, planning, policy, recover, reduce, resolve, resume,
stream, trace,
};
}
pub mod provider {
pub use turnframe_provider::*;
#[cfg(feature = "openai")]
pub mod openai {
pub use turnframe_provider_openai::*;
}
#[cfg(feature = "anthropic")]
pub mod anthropic {
pub use turnframe_provider_anthropic::*;
}
#[cfg(feature = "gemini")]
pub mod gemini {
pub use turnframe_provider_gemini::*;
}
#[cfg(feature = "bedrock")]
pub mod bedrock {
pub use turnframe_provider_bedrock::*;
}
#[cfg(feature = "ollama")]
pub mod ollama {
pub use turnframe_provider_ollama::*;
}
}
pub mod prompt {
pub use turnframe_core::prompt::*;
#[cfg(feature = "prompts")]
pub use turnframe_prompt::{
CachedPromptSource, Clock, FilePromptSource, ManualClock, PromptFile, SystemClock,
VERSION_HEX_LEN, cache, files, prompt_dir, version_of,
};
#[cfg(feature = "langfuse")]
pub use turnframe_prompt::langfuse;
}
pub mod store {
pub use turnframe_store::*;
#[cfg(feature = "postgres")]
pub mod postgres {
pub use turnframe_store_postgres::*;
}
}
#[cfg(feature = "telemetry")]
pub mod telemetry {
pub use turnframe_telemetry::*;
}
#[cfg(feature = "test-kit")]
pub mod testing {
pub use turnframe_test::*;
}
#[cfg(feature = "eval")]
pub mod evaluation {
pub use turnframe_eval::*;
}
pub use turnframe_core::case::{CaseKey, CaseRef, Versioned};
pub use turnframe_core::command::{
AtomicityScope, ClaimMode, CommandBatch, CommandEnvelope, CommandOrigin, CommandPolicy,
ConfirmationPolicy, IdempotencyKey, ResolutionChannel, RiskClass, origin_satisfies,
};
pub use turnframe_core::error::{
DomainRejection, ExecutionError, InvariantViolation, OrchestratorError, RejectionCode,
RevisionConflict, StoreError,
};
pub use turnframe_core::event::{
Commit, CommittedEvent, EventRedaction, EventRef, ExternalStatus, OperationalReceipt,
ReceiptEvent, ReceiptSeverity, RedactedEvent,
};
pub use turnframe_core::flow::{
InteractionRequirement, ObligationId, PhaseOwnership, ViewOf, WorkflowDefinition,
WorkflowExecutor, WorkflowNotice, WorkflowRegistry, WorkflowRegistryBuilder, WorkflowView,
check_view,
};
pub use turnframe_core::hash::Digest;
pub use turnframe_core::ids::{
AccountId, CaseId, CaseRevision, ConversationId, EventId, InteractionId, OperationKey,
OptionId, RedactionAuthority, TargetToken, TurnId, UserId, WorkflowKey, WorkflowVersion,
};
pub use turnframe_core::interaction::{
ActionClass, Interaction, InteractionKind, InteractionOption, InteractionPayload,
InteractionSpec, InteractionStatus, InteractionView, ReviewDiffEntry, StoredInteractionAction,
};
pub use turnframe_core::locale::{Locale, LocalizedText};
pub use turnframe_core::operation::{ArgumentSpec, OperationSpec};
pub use turnframe_core::plan::{ActMutability, TargetPolicy};
pub use turnframe_core::policy::{PolicyDecision, PolicySnapshot};
pub use turnframe_core::reduce::{PlannedAct, PlannedActResult, ReductionPlan};
pub use turnframe_core::response::{AssistantTurn, ResponseBlock, ServerNotice};
pub use turnframe_core::turn::{ActorContext, InteractionResponse, TurnInput};
pub use turnframe_core::understanding::{
ActId, ActTarget, ConstraintKind, Understanding, UnderstoodAct,
};
pub use turnframe_runtime::config::{OrchestrationMode, OrchestratorConfig};
pub use turnframe_runtime::orchestrator::{
BuildError, CaseCandidate, CaseDirectory, Orchestrator, OrchestratorBuilder,
StaticCaseDirectory, TurnConsequences,
};
pub mod prelude {
pub use crate::{
AccountId, ActionClass, ActorContext, AssistantTurn, AtomicityScope, CaseId, CaseKey,
CaseRef, CaseRevision, ClaimMode, CommandBatch, CommandEnvelope, CommandOrigin,
CommandPolicy, ConfirmationPolicy, ConversationId, Digest, DomainRejection, ExecutionError,
IdempotencyKey, Interaction, InteractionId, InteractionKind, InteractionResponse,
InteractionSpec, InteractionStatus, InteractionView, Locale, LocalizedText, OperationSpec,
OperationalReceipt, Orchestrator, OrchestratorBuilder, OrchestratorConfig,
OrchestratorError, PolicySnapshot, RejectionCode, ResolutionChannel, ResponseBlock,
RiskClass, ServerNotice, TargetPolicy, TurnId, TurnInput, UserId, Versioned,
WorkflowDefinition, WorkflowExecutor, WorkflowKey, WorkflowRegistry, WorkflowView,
};
}