Skip to content

API Reference

Everything below is importable from the top-level package (from mmar_carl import ...). The list was checked against mmar_carl.__all__ of 0.5.2 (381 names) plus the host-contract names listed at the end. Follow the links for guides.

ReasoningChain · ChainBuilder · create_chain_from_config · ReasoningContext · ReasoningResult · StepExecutionResult · DAGExecutor · ContextSnapshot · PromptTemplate · Language · StepType · MemoryOperation · ChainFormatNewerError · ExecutionCancelledError · LLMTokenLimitError → chains · run controls

Typed: LLMStepDescription · ToolStepDescription · MemoryStepDescription · TransformStepDescription · ConditionalStepDescription · StructuredOutputStepDescription · MCPStepDescription · MCPResourceStepDescription · AgentSkillStepDescription · AgentHandoffStepDescription · SupervisorStepDescription · DebateStepDescription · ParallelSamplingStepDescription · HumanInputStepDescription · ToolDiscoveryStepDescription · EvaluationStepDescription · AgentStepDescription · CodeStepDescription · WaitStepDescription · MapStepDescription · CommandPlanStepDescription · CommandStepDescription · ShellSessionStepDescription · ClaudeCodeStepDescription · CodexStepDescription · SelectionStepDescription · PlannerStepDescription · DecisionStepDescription · TerminateStepDescription. Base / legacy: StepDescriptionBase · StepDescription · AnyStepDescription · StepConfig · create_step → steps

LLMStepConfig · ExecutionMode · ToolStepConfig · ToolErrorRecovery · ToolParameter · MemoryStepConfig · TransformStepConfig · ConditionalStepConfig · ConditionalBranch · StructuredOutputStepConfig · MCPStepConfig · MCPServerConfig · MCPResourceStepConfig · AgentHandoffStepConfig · SupervisorStepConfig · DebateStepConfig · ParallelSamplingStepConfig · ParallelSamplingAggregation · VoteNormalization · HumanInputStepConfig · ToolDiscoveryStepConfig · AgentSkillStepConfig · AgentSkillExecutionMode · AgentSkillSource · EvaluationStepConfig · EvalFailAction · AgentStepConfig · CodeStepConfig · WaitStepConfig · WaitCondition · WaitLeafCondition · AfterWaitCondition · AtWaitCondition · EventWaitCondition · AnyOfWaitCondition · MapStepConfig · CommandPlanStepConfig · CommandStepConfig · ShellSessionStepConfig · ClaudeCodeStepConfig · CodexStepConfig · SelectionStepConfig · PlannerStepConfig · DecisionStepConfig · DecisionQuestion · DecisionChoice · DecisionLevel · TerminateStepConfig · LoopConfig · StepCache · StepGroup

HumanInputRequest · HumanInputResponse · HumanInputOutcome · HumanInputStatus · CodeExecutionOutcome · CodeExecutionStatus · CodeSchemaError · CodeSourceError · WaitOutcome · MapOutcome · MapItemOutcome · MapItemStatus · ChainToolOutcome · ChainToolStatus

ChainToolDefinition · ChainToolRuntime · ChainToolOutcome · ChainToolStatus → chain tools

CommandPolicy · CommandDecision · CommandApprovalRequest · CommandCapability · CommandCapabilityRegistry · CommandPlanEnvelope · CommandPlanRecord · ValidatedCommandPlan · ResolvedCommandInvocation · CodeExecutionPolicy · CodeRuntimeProfile · NetworkPolicy · NetworkEnforcer · PreconfiguredNetworkEnforcer · ManagedNetworkProfile · NetworkEnforcementRequest · NetworkEnforcementPlan · NetworkEnforcementLease · NetworkEnforcerError · DockerNetworkBinding · FirejailNetworkBinding · resolve_network_policy · parse_network_allowlist_from_allowed_tools · ArtifactInput · ArtifactOutput · ArtifactRecord → command step · code step

ClaudeCodeStepExecutor · ClaudeCodeCliStatus · check_claude_code_cli · CodexStepExecutor · CodexRuntimeStatus · check_codex_runtime → Claude Code step · Codex step. Both need ReasoningContext.allow_local_agent_execution=True.

DecisionStepExecutor (accepts an httpx transport for tests) · DecisionProviderError → decision step. The host grant is ReasoningContext.decision_endpoints.

ContextSearchConfig · ContextQuery · SubstringSearchStrategy · VectorSearchStrategy · SearchStrategy → context & search

LTMBase · InMemoryLTM · JsonFileLTM · LazyMemoryValue · unwrap_lazy · MemorySchemaError → memory

LLMClientBase · ChatMessage · OpenAICompatibleClient · OpenAIClientConfig · create_openai_client · RetryPolicy · AnthropicClient · AnthropicClientConfig · AnthropicClientError · openai_tools_to_anthropic · RecordingLLMClient · PlayingLLMClient · CassetteMissError → LLM clients

MetricBase · call_metric_async · MetricOutput · ExactMatchMetric · CaseInsensitiveMatchMetric · ContainsMetric · RegexMatchMetric · DatasetEvaluator · DataCase · SimpleDataset · DataFrameDataset · AbstractDataset · DatasetEvaluationReport · CaseEvaluationResult · SelectionStrategy · ThresholdStrategy · TopKWorstStrategy · EvalSuite · EvalSuiteReport · EvalSuiteDiff · EvalCaseResult · MetricSummary · ReflectionOptions · SelfCriticDecision · SelfCriticEvaluatorBase → evaluation

ChainEvolver · ChainMutator · MutationKind · EvolutionResult · IndividualMetrics · EvolutionCostEstimate · GenerationStats · format_runs_pareto → evolution

Catalog and validation: get_step_catalog · StepCatalog · StepTypeSpec · FieldSpec · ReferenceSpec · schema_for · config_class_names · reference_fields · validate_spec · validate_and_build · ValidationReport · ValidationIssue · check_drift · DriftReport · auto_generate_minimal_step. Mutation: mutable_fields · mutable_targets · get_field_by_path · set_field_by_path · iter_mutable_values · expand_field_path · sample_field_value · mutate_content · insert_step_at · remove_step · rewire_dependencies · change_step_type · apply_records · MutationRecord · MutationError · find_root_steps · find_leaf_steps · dependents_of · steps_of_type · deletable_steps · can_delete_step · frozen_step_numbers. Capabilities: CapabilityLibrary · CapabilityEntry. Code tools: CodeTool · CodeToolLibrary · CodeToolError · validate_code_tool · compile_code_tool · mutate_tool_code · TOOL_LIBRARY_KEY. Runs and datasets: RunDescriptor · ComplexityDescriptor · extract_run_descriptor · extract_complexity · pareto_front · pareto_rank · dominates · subsample · split · select_cases · CaseSplit · CaseDiff → EvoC primitives

ExecutionTrace · TraceEvent · TraceAggregator · ChainVisualizer · CostEstimate · StepCostEstimate · StreamingBuffer · logging: set_log_level / get_logger / log_info / log_debug / log_warning / log_error / log_chain_start / log_chain_complete / log_step_start / log_step_complete / log_batch_start · langfuse_flush · is_langfuse_enabled → tracing

ReplanPolicy · RuleBasedReplanCheckerConfig · LLMReplanCheckerConfig · RegisteredReplanCheckerConfig · ReplanCheckerSpec · ReplanCheckerBase · RuleBasedReplanChecker · LLMReplanChecker · ReplanCheckerInput · ReplanCheckerVote · ReplanAction · ReplanAggregationStrategy · ReplanAggregationConfig · ReplanAggregationOutcome · ReplanTriggerConfig · ReplanBudgetConfig · ReplanRollbackTarget · ReplanTargetType · ReplanVerdict · ReplanEvent → RE-PLAN

DebateTranscript · DebateTurn · ParallelSamples · SupervisorDecision → orchestration

PreflightReport · RunRecord · CareChainMetadata · CareContextFile · CARE_METADATA_NAMESPACE → MAESTRO integration

resolve_skill · GithubResolver · LocalResolver · HttpsTarballResolver · ModuleResolver · SkillResolverRegistry · get_default_registry · ResolvedSkill · SkillIntegrityError · SkillResolveError · SkillNotFoundError · SkillParseError · SkillLoader · SkillManifest · SkillFrontmatterData · SkillOutput · SkillOutputSchemaError · parse_and_validate_skill_output · list_cached_skills · runtimes: SkillRuntime · SkillRuntimeHandle · RuntimeRunResult · SkillRuntimeError · RuntimeCapabilities · EnforcementReport · assess_runtime_enforcement · get_runtime_capabilities · register_skill_runtime · get_skill_runtime · list_skill_runtimes · LocalSkillRuntime / DockerSkillRuntime / E2BSkillRuntime / FirejailSkillRuntime → AgentSkills

carl_tool · ToolDefinition · ToolSource · ModuleToolSource · CallableToolSource · DictToolSource · AsyncToolWrapper · get_executor · register_executor · StepExecutorBase · one *StepExecutor class per step type (for example LLMStepExecutor, ToolStepExecutor, MapStepExecutor, WaitStepExecutor) → tool steps. GitToolSource is not exported at the top level: import it from mmar_carl.models.config. execute_eager_tools lives in mmar_carl.eager_tools.

ChainTestHarness · MCPSessionPool → MCP

These names mark the host-input contracts that MAESTRO relies on. They exist in 0.5.2 and in MAESTRO’s pinned CARL build. They are module attributes, not entries of __all__:

NameValueMeaning
HOST_RUNTIME_INPUT_ABI1ReasoningContext.runtime_input and $outer_context.<field> are supported.
STRUCTURED_OUTPUT_SCOPED_INPUTS_ABI1StructuredOutputStepConfig.input_mapping is supported.
HUMAN_INPUT_SCOPED_PROMPT_ABI1HumanInputStepConfig.prompt_input_mapping is supported.

A host checks them with getattr(mmar_carl, "HOST_RUNTIME_INPUT_ABI", 0) >= 1 before relying on the contract.