# Locus > Oracle Generative AI Multi-Agent Reasoning Orchestrator SDK (Oracle Generative AI – Multi-Agent Locus SDK): a Python agent harness with one Agent class, eight ways to combine agents, Oracle Cloud underneath, an admission gate in front of every consequential action, open to every provider. Locus is a Python SDK. Each link below is the Markdown twin of a page on https://locusagents.ai/; drop `index.md` from a link for the HTML page. `llms-full.txt` holds every guide page in one file. ## Home - [Home](https://locusagents.ai/index.md): Oracle Generative AI Multi-Agent Reasoning Orchestrator SDK. One Agent class, eight ways to combine agents, Oracle Cloud underneath: OCI Generative AI, Oracle Database 26ai, OCI GenAI Sandboxes, an admission gate in front of every consequential action. ## Concepts - [Multi-agent shapes](https://locusagents.ai/concepts/multi-agent/index.md) - [The Agent](https://locusagents.ai/concepts/agent/index.md) - [Agent loop](https://locusagents.ai/concepts/agent-loop/index.md) - [Tools](https://locusagents.ai/concepts/tools/index.md) - [Model providers](https://locusagents.ai/concepts/models/index.md) - [Capabilities](https://locusagents.ai/capabilities/index.md) - [Overview and the eight protocols](https://locusagents.ai/concepts/multi-agent/index.md) - [Composition (pipelines)](https://locusagents.ai/concepts/multi-agent/composition/index.md) - [StateGraph](https://locusagents.ai/concepts/multi-agent/graph/index.md) - [Functional API](https://locusagents.ai/concepts/multi-agent/functional/index.md) - [Graph streaming](https://locusagents.ai/concepts/graph-streaming/index.md) - [Orchestrator](https://locusagents.ai/concepts/multi-agent/orchestrator/index.md) - [Swarm](https://locusagents.ai/concepts/multi-agent/swarm/index.md) - [Handoff](https://locusagents.ai/concepts/multi-agent/handoff/index.md) - [A2A protocol](https://locusagents.ai/concepts/multi-agent/a2a/index.md) - [DeepAgent](https://locusagents.ai/concepts/deepagent/index.md) - [Production-readiness](https://locusagents.ai/concepts/multi-agent/production/index.md) - [Oracle Database 26ai](https://locusagents.ai/concepts/oracle-26ai/index.md): Every Oracle Database 26ai primitive in the SDK — vector search, in-database chunking and embeddings, table ingestion, durable and versioned threads, long-term memory and Oracle agent memory — with the notebook that runs each one. - [State](https://locusagents.ai/concepts/state/index.md) - [Prompts](https://locusagents.ai/concepts/prompts/index.md) - [Conversation management](https://locusagents.ai/concepts/conversation-management/index.md) - [Structured output](https://locusagents.ai/concepts/structured-output/index.md) - [Termination](https://locusagents.ai/concepts/termination/index.md) - [Interrupts](https://locusagents.ai/concepts/interrupts/index.md) - [Hooks](https://locusagents.ai/concepts/hooks/index.md) - [Retry strategies](https://locusagents.ai/concepts/retry/index.md) - [Errors](https://locusagents.ai/concepts/errors/index.md) - [Idempotency](https://locusagents.ai/concepts/idempotency/index.md) - [Executors](https://locusagents.ai/concepts/executors/index.md) - [MCP](https://locusagents.ai/concepts/mcp/index.md) - [Multi-modal providers](https://locusagents.ai/concepts/multi-modal-providers/index.md) - [Overview](https://locusagents.ai/harness/index.md) - [Sandbox backends](https://locusagents.ai/harness/backends/index.md) - [OCI GenAI Sandboxes](https://locusagents.ai/harness/oci-sandbox/index.md) - [NVIDIA OpenShell](https://locusagents.ai/harness/openshell/index.md) - [Memory — short-term and long-term](https://locusagents.ai/concepts/memory/index.md): The three memories of an agent — working memory, thread memory and long-term memory — plus knowledge retrieval, and how Oracle Database 26ai backs the ones that persist. - [Checkpointers & Store](https://locusagents.ai/concepts/checkpointers/index.md) - [Long-term memory manager](https://locusagents.ai/concepts/memory-manager/index.md) - [RAG](https://locusagents.ai/concepts/rag/index.md) - [PgCheckpointer and retention](https://locusagents.ai/pg-checkpointer/index.md) - [Reasoning patterns](https://locusagents.ai/concepts/reasoning/index.md) - [GSAR (typed grounding)](https://locusagents.ai/concepts/gsar/index.md) - [Typed decisions](https://locusagents.ai/decision/index.md) - [Observability](https://locusagents.ai/concepts/observability/index.md) - [Events](https://locusagents.ai/concepts/events/index.md) - [Streaming](https://locusagents.ai/concepts/streaming/index.md) - [SSE event catalogue](https://locusagents.ai/concepts/sse-events/index.md) - [Agent server](https://locusagents.ai/concepts/server/index.md) - [Testing](https://locusagents.ai/concepts/testing/index.md) - [Evaluation](https://locusagents.ai/concepts/evaluation/index.md) - [Skills](https://locusagents.ai/concepts/skills/index.md) - [Playbooks](https://locusagents.ai/concepts/playbooks/index.md) - [Control-layer architecture](https://locusagents.ai/concepts/control-layer/index.md): How the SDK's agent loop, grounding, admission policy, approvals, persistence, and audit records fit together—and where each guarantee stops. - [Writing a policy that holds](https://locusagents.ai/concepts/policy-authoring/index.md) - [Guardrails](https://locusagents.ai/concepts/safety/index.md) - [Overview](https://locusagents.ai/concepts/models/index.md) - [OCI Generative AI](https://locusagents.ai/concepts/providers/oci/index.md) - [OCI Responses API](https://locusagents.ai/concepts/oci-responses/index.md) - [OpenAI](https://locusagents.ai/concepts/providers/openai/index.md) - [Anthropic](https://locusagents.ai/concepts/providers/anthropic/index.md) - [OpenAI-compatible endpoints](https://locusagents.ai/concepts/providers/openai-compatible/index.md) - [Resilience](https://locusagents.ai/concepts/providers/resilience/index.md) - [Research](https://locusagents.ai/research/index.md) - [Policy blindness](https://locusagents.ai/research/policy-blindness/index.md): A measured study of consequence-family blind spots in admission policies and action classifiers. - [Guarantees & boundaries](https://locusagents.ai/why-locus/index.md): What the SDK's policy gate, grounding, idempotency, and audit trail enforce; what developers configure; and what remains model-dependent. - [Compatibility & releases](https://locusagents.ai/compatibility/index.md): Supported Python versions, documentation versioning, API stability, deprecations, and integration status for the SDK. - [Release notes](https://locusagents.ai/release-notes/index.md): What changed in each release of locus-sdk, newest first, generated from the repository's changelog when the site is built. - [About & maintainers](https://locusagents.ai/about/index.md): Who maintains the Oracle Generative AI – Multi-Agent Locus SDK, where it came from, and how releases, security reports, and contributions are managed. ## How-to - [Quickstart](https://locusagents.ai/how-to/quickstart/index.md): Install the SDK, run one complete Python agent, and verify the result before adding tools or policy controls. - [Install extras](https://locusagents.ai/how-to/install-extras/index.md): Which pip extra enables which part of the SDK: model providers, serving and observability, checkpoint backends and memory, RAG stores and rerankers, the coding harness, durable runs, control, and the bundles. - [The locus command](https://locusagents.ai/how-to/command-line/index.md): Every subcommand of the locus command line, run, resume, approvals, audit, policy, serve, mcp, a2a, codex, eval and deploy, with its actions and exit codes, read from the command itself at build time. - [Build it with Codex](https://locusagents.ai/how-to/codex/index.md): OpenAI Codex builds on the SDK. A skill teaches it the SDK, `locus codex` starts Codex with that skill and the sandbox settings it needs, a specification walks it through a first agent in a clone, and a gateway lets Codex itself run on OCI Generative AI. - [Configure a model provider](https://locusagents.ai/how-to/configure-providers/index.md): Where each provider's credentials and endpoint come from — OCI Generative AI, OpenAI, Anthropic, OpenRouter, Together, RunPod, Gemini, the other hosted routes, self-hosted servers and any OpenAI-compatible endpoint — and how to check a route in ten lines. - [Environment variables](https://locusagents.ai/how-to/environment-variables/index.md) - [First controlled action](https://locusagents.ai/how-to/first-controlled-action/index.md): Run a credential-free refund example that demonstrates all three admission outcomes and its audit record. - [Persist conversations](https://locusagents.ai/how-to/persist-conversations/index.md) - [Build a custom tool](https://locusagents.ai/how-to/custom-tools/index.md) - [Add a checkpointer backend](https://locusagents.ai/how-to/custom-checkpointer/index.md) - [OCI Generative AI models](https://locusagents.ai/how-to/oci-models/index.md) - [Dedicated AI Clusters](https://locusagents.ai/how-to/oci-dac/index.md) - [LiteLLM gateway](https://locusagents.ai/how-to/litellm-gateway/index.md) - [Evaluate an agent in CI](https://locusagents.ai/how-to/evaluate-in-ci/index.md) - [Benchmark the router](https://locusagents.ai/how-to/router-benchmark/index.md) - [Deploy](https://locusagents.ai/how-to/deploy/index.md) - [Deploy to OCI](https://locusagents.ai/how-to/deploy-oci/index.md) - [The box runner](https://locusagents.ai/runner/index.md) ## Notebooks - [Examples](https://locusagents.ai/notebooks/index.md) - [01 · OCI transports — start here](https://locusagents.ai/notebooks/notebook_01_oci_transports/index.md) - [02 · Basic agent](https://locusagents.ai/notebooks/notebook_02_basic_agent/index.md) - [03 · Agent with tools](https://locusagents.ai/notebooks/notebook_03_agent_with_tools/index.md) - [04 · A chat loop](https://locusagents.ai/notebooks/notebook_04_chat_loop/index.md) - [05 · Conversation memory](https://locusagents.ai/notebooks/notebook_05_agent_memory/index.md) - [06 · Streaming events](https://locusagents.ai/notebooks/notebook_06_agent_streaming/index.md) - [07 · Structured output](https://locusagents.ai/notebooks/notebook_07_structured_output/index.md) - [08 · Termination conditions](https://locusagents.ai/notebooks/notebook_08_termination/index.md) - [09 · Lifecycle hooks](https://locusagents.ai/notebooks/notebook_09_agent_hooks/index.md) - [10 · Advanced hooks and guardrails](https://locusagents.ai/notebooks/notebook_10_hooks_advanced/index.md) - [11 · Model providers](https://locusagents.ai/notebooks/notebook_11_model_providers/index.md) - [12 · Basic graph](https://locusagents.ai/notebooks/notebook_12_basic_graph/index.md) - [13 · Conditional routing](https://locusagents.ai/notebooks/notebook_13_conditional_routing/index.md) - [14 · State reducers](https://locusagents.ai/notebooks/notebook_14_state_reducers/index.md) - [15 · Human in the loop](https://locusagents.ai/notebooks/notebook_15_human_in_the_loop/index.md) - [16 · Advanced graph patterns](https://locusagents.ai/notebooks/notebook_16_advanced_patterns/index.md) - [17 · Resilient graphs](https://locusagents.ai/notebooks/notebook_17_graph_advanced/index.md) - [18 · Functional API](https://locusagents.ai/notebooks/notebook_18_functional_api/index.md) - [19 · Composition — pipelines](https://locusagents.ai/notebooks/notebook_19_composition/index.md) - [20 · Scatter-gather with Send](https://locusagents.ai/notebooks/notebook_20_map_reduce_support_triage/index.md) - [21 · Supervisor and critic loop](https://locusagents.ai/notebooks/notebook_21_supervisor_critic_loop/index.md) - [22 · Orchestrator](https://locusagents.ai/notebooks/notebook_22_orchestrator_pattern/index.md) - [23 · Specialist agents](https://locusagents.ai/notebooks/notebook_23_specialist_agents/index.md) - [24 · Swarm](https://locusagents.ai/notebooks/notebook_24_swarm_multiagent/index.md) - [25 · Handoff](https://locusagents.ai/notebooks/notebook_25_agent_handoff/index.md) - [26 · Debate with a judge](https://locusagents.ai/notebooks/notebook_26_debate_with_judge/index.md) - [27 · Multi-agent human in the loop](https://locusagents.ai/notebooks/notebook_27_multiagent_human_in_loop/index.md) - [28 · Emergent routing](https://locusagents.ai/notebooks/notebook_28_emergent_routing/index.md) - [29 · Cognitive router](https://locusagents.ai/notebooks/notebook_29_cognitive_router/index.md) - [30 · A2A protocol](https://locusagents.ai/notebooks/notebook_30_a2a_protocol/index.md) - [31 · DeepAgent](https://locusagents.ai/notebooks/notebook_31_deepagent/index.md) - [32 · Research workflow](https://locusagents.ai/notebooks/notebook_32_research_workflow/index.md) - [33 · OCI v1 chat](https://locusagents.ai/notebooks/notebook_33_oci_openai_chat/index.md) - [34 · OCI Responses](https://locusagents.ai/notebooks/notebook_34_oci_responses/index.md) - [35 · OCI Dedicated AI Cluster](https://locusagents.ai/notebooks/notebook_35_oci_dac/index.md) - [36 · OCI tools — drive the control plane](https://locusagents.ai/notebooks/notebook_36_oci_tools/index.md) - [37 · Oracle 26ai store](https://locusagents.ai/notebooks/notebook_37_oracle_store/index.md) - [38 · Oracle 26ai RAG](https://locusagents.ai/notebooks/notebook_38_oracle_26ai_rag/index.md) - [39 · Oracle ADB loader](https://locusagents.ai/notebooks/notebook_39_oracle_adb_loader/index.md) - [40 · Oracle in-DB chunker](https://locusagents.ai/notebooks/notebook_40_oracle_indb_chunker/index.md) - [41 · Oracle in-DB embeddings](https://locusagents.ai/notebooks/notebook_41_oracle_indb_embeddings/index.md) - [42 · Oracle 26ai checkpointer](https://locusagents.ai/notebooks/notebook_42_oracle_26ai_checkpointer/index.md) - [43 · Oracle versioned saver](https://locusagents.ai/notebooks/notebook_43_oracle_versioned_saver/index.md) - [44 · Oracle agent memory](https://locusagents.ai/notebooks/notebook_44_oracle_agent_memory/index.md) - [45 · Cohere reranker on Oracle 26ai](https://locusagents.ai/notebooks/notebook_45_cohere_reranker/index.md) - [46 · MCP integration](https://locusagents.ai/notebooks/notebook_46_mcp_integration/index.md) - [47 · Plugins](https://locusagents.ai/notebooks/notebook_47_plugins/index.md) - [48 · Skills](https://locusagents.ai/notebooks/notebook_48_skills/index.md) - [49 · Playbooks](https://locusagents.ai/notebooks/notebook_49_playbooks/index.md) - [50 · Checkpoint backends](https://locusagents.ai/notebooks/notebook_50_checkpoint_backends/index.md) - [51 · RAG basics](https://locusagents.ai/notebooks/notebook_51_rag_basics/index.md) - [52 · RAG providers](https://locusagents.ai/notebooks/notebook_52_rag_providers/index.md) - [53 · RAG agents](https://locusagents.ai/notebooks/notebook_53_rag_agents/index.md) - [54 · Reasoning patterns](https://locusagents.ai/notebooks/notebook_54_reasoning_patterns/index.md) - [55 · GSAR typed grounding](https://locusagents.ai/notebooks/notebook_55_gsar_typed_grounding/index.md) - [56 · Evaluation](https://locusagents.ai/notebooks/notebook_56_evaluation/index.md) - [57 · Multi-modal providers](https://locusagents.ai/notebooks/notebook_57_multimodal_providers/index.md) - [58 · Audio response](https://locusagents.ai/notebooks/notebook_58_audio_response/index.md) - [59 · Audio chat](https://locusagents.ai/notebooks/notebook_59_audio_chat/index.md) - [60 · Observability basics](https://locusagents.ai/notebooks/notebook_60_observability_basics/index.md) - [61 · Agent yield bridge](https://locusagents.ai/notebooks/notebook_61_agent_yield_bridge/index.md) - [62 · EventBus subscribers](https://locusagents.ai/notebooks/notebook_62_eventbus_subscribers/index.md) - [63 · Event catalogue](https://locusagents.ai/notebooks/notebook_63_event_catalogue/index.md) - [64 · SSE streaming](https://locusagents.ai/notebooks/notebook_64_sse_streaming/index.md) - [65 · Agent server](https://locusagents.ai/notebooks/notebook_65_agent_server/index.md) - [66 · LiteLLM gateway](https://locusagents.ai/notebooks/notebook_66_litellm_gateway/index.md) - [67 · LiteLLM cost guardrails](https://locusagents.ai/notebooks/notebook_67_litellm_gateway_cost/index.md) - [68 · Steering](https://locusagents.ai/notebooks/notebook_68_steering/index.md) - [69 · Guardrails — prompt injection](https://locusagents.ai/notebooks/notebook_69_guardrails_security/index.md) - [70 · Trace hygiene](https://locusagents.ai/notebooks/notebook_70_guardrails_advanced/index.md) - [71 · Payment refund gate](https://locusagents.ai/notebooks/notebook_71_payment_refund_gate/index.md) - [72 · Infra deploy gate](https://locusagents.ai/notebooks/notebook_72_infra_deploy_gate/index.md) - [73 · Support account gate](https://locusagents.ai/notebooks/notebook_73_support_account_gate/index.md) - [74 · Data deletion gate](https://locusagents.ai/notebooks/notebook_74_data_deletion_gate/index.md) - [75 · Cloud resource gate](https://locusagents.ai/notebooks/notebook_75_cloud_resource_gate/index.md) - [76 · Incident response with an audit chain](https://locusagents.ai/notebooks/notebook_76_ir_audit_trail/index.md) - [77 · Incident response runbook](https://locusagents.ai/notebooks/notebook_77_incident_response/index.md) - [78 · Concession approval](https://locusagents.ai/notebooks/notebook_78_concession_approval/index.md) - [79 · Contract review](https://locusagents.ai/notebooks/notebook_79_contract_review/index.md) - [80 · Vendor integrations](https://locusagents.ai/notebooks/notebook_80_vendor_integrations/index.md) - [81 · Router benchmark](https://locusagents.ai/notebooks/notebook_81_router_benchmark/index.md) ## API reference - [Overview](https://locusagents.ai/api/index.md): Signatures and docstrings for the locus package, from agents, tools and models to memory, RAG, multi-agent workflows, serving and the control layer, each linked to the guide that explains it. - [Agent](https://locusagents.ai/api/agent/index.md) - [Multi-agent](https://locusagents.ai/api/multiagent/index.md) - [DeepAgent](https://locusagents.ai/api/deepagent/index.md) - [Control](https://locusagents.ai/api/control/index.md) - [Tools](https://locusagents.ai/api/tools/index.md) - [A2A](https://locusagents.ai/api/a2a/index.md) - [Hooks](https://locusagents.ai/api/hooks/index.md) - [Termination](https://locusagents.ai/api/termination/index.md) - [Reasoning](https://locusagents.ai/api/reasoning/index.md) - [RAG](https://locusagents.ai/api/rag/index.md) - [Memory](https://locusagents.ai/api/memory/index.md) - [Checkpointers](https://locusagents.ai/api/checkpointers/index.md) - [Models](https://locusagents.ai/api/models/index.md) - [Capability providers](https://locusagents.ai/api/providers/index.md) - [Streaming](https://locusagents.ai/api/streaming/index.md) - [Events](https://locusagents.ai/api/events/index.md) - [Observability](https://locusagents.ai/api/observability/index.md) - [Agent Server](https://locusagents.ai/api/server/index.md) - [Evaluation](https://locusagents.ai/api/evaluation/index.md) - [Playbooks](https://locusagents.ai/api/playbooks/index.md) - [Skills](https://locusagents.ai/api/skills/index.md) - [Integrations](https://locusagents.ai/api/integrations/index.md) - [Core primitives](https://locusagents.ai/api/core/index.md) ## Optional - [llms-full.txt](https://locusagents.ai/llms-full.txt): every guide page in one file