conductor-sdk 0.2.0

Rust SDK for Netflix Conductor workflow orchestration
Documentation
// Copyright {{.Year}} Conductor OSS
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

pub mod client;
pub mod configuration;
pub mod error;
pub mod events;
pub mod http;
pub mod metrics;
pub mod models;
pub mod schema;
pub mod worker;

#[cfg(feature = "agents")]
pub mod agents;

// Re-exports for convenience
#[cfg(feature = "agents")]
pub use agents::{
    agent_run_span, compile_span, handoff_span, is_tracing_enabled, llm_call_span, plan_execute,
    record_token_usage, tool_call_span, traced_agent_run, traced_tool_call, Action,
    AgentConfigSerializer, AgentDef, AgentEvent, AgentHandle, AgentResult, AgentRuntime,
    AgentStatus, AgentStream, CallbackContext, CallbackHandler, Context, ConversationMemory,
    Credentials, FunctionGuardrail, GateCondition, GateHandler, Generate, Guardrail,
    GuardrailCheck, GuardrailResult, LlmGuardrail, Message, MessageRole, OnFail, Op, OpBody, Plan,
    PlanExecuteOptions, Position, PrefillToolCall, Ref, RegexGuardrail, RegexMode, RunSettings,
    Step, StopWhenHandler, Strategy, SwarmConditionFn, SwarmContext, SwarmTransition,
    TerminationCondition, TextGate, ToolCall, ToolContext, ToolDef, ToolHandler, ToolType,
    Validation,
};
#[cfg(feature = "agents")]
pub use client::AgentClient;
pub use client::{
    AuthorizationClient, ConductorClient, EventClient, IntegrationClient, MetadataClient,
    OrkesClients, PromptClient, QueueConfiguration, SchedulerClient, SchemaClient, SecretClient,
    TaskClient, WorkflowClient,
};
pub use configuration::{Configuration, WorkerConfig};
pub use error::{ConductorError, Result};
pub use events::{EventDispatcher, TaskRunnerEvent, TaskRunnerEventsListener};
pub use metrics::{MetricsCollector, MetricsSettings};
pub use models::{
    AccessKey, AccessType, ChatMessage, ConductorApplication, ConductorUser,
    CreateOrUpdateApplicationRequest, CreatedAccessKey, EmbeddedTaskDef, GrantedPermission, Group,
    Integration, IntegrationApi, IntegrationApiUpdate, IntegrationUpdate, MetadataTag, Permission,
    PromptTemplate, Role, SaveScheduleRequest, SchemaDef, SearchResultWorkflowScheduleExecution,
    StartWorkflowRequest, StartWorkflowScheduleRequest, StateChangeConfig, StateChangeEvent,
    StateChangeEventType, SubWorkflowParams, SubjectRef, SubjectType, TargetRef, TargetType, Task,
    TaskDef, TaskInProgress, TaskResult, TaskResultStatus, TaskStatus, TaskType,
    UpsertGroupRequest, UpsertUserRequest, Workflow, WorkflowDef, WorkflowSchedule,
    WorkflowScheduleExecution, WorkflowStatus, WorkflowTask, WorkflowTimeoutPolicy,
};
pub use worker::{
    FnWorker, TaskContext, TaskHandler, TaskRunner, Worker, WorkerHost, WorkerOutput,
};

// Re-export the procedural macros when the feature is enabled
#[cfg(feature = "agents")]
pub use conductor_macros::tool;
#[cfg(feature = "macros")]
pub use conductor_macros::{worker, worker_task};