Skip to content
OpenEightDeveloper docs
Docs / SDK reference / Configuration
SDK integration

Configuration

Configure connection settings, approval waiting and content capture.

On this pageOpenEight configurationErrors and content

OpenEight configuration

Pass OpenEightConfig as openeight=. Use the connection details from Agent setup in the Console.

OpenEightConfig settings
FieldDefault or requirementUse
agent_nameRequiredPass the Agent Slug from setup. Read OPENEIGHT_AGENT_NAME explicitly if you store it in the environment.
endpointOPENEIGHT_ENDPOINT when omittedOpenEight API endpoint (https://app.openeight.ai).
credentialOPENEIGHT_API_KEY when omittedAgent API Key from setup.
on_blockmessageUse message to return feedback to the Agent or raise to handle the error in your code.
approvalOne-hour inline wait when omittedSet ApprovalConfig(timeout=...) for a shorter foreground request.
capture_contentnoneOpt into inputs, outputs or all only when appropriate.
redact_contentNo callbackTransform captured content before queueing. Authorization still uses the inputs selected by policy.
sourcesEmpty tupleDeclare MCP sources with MCPSource.
mcp_toolsNoneSelect MCP tools for the Agent.
discoveryNoneCustomize tool discovery with DiscoveryConfig.
deliveryNoneCustomize telemetry delivery with DeliveryConfig.
runtime_modelsNoneList the models your Agent may use with RuntimeModelConfig.
checkpointsNoneConfigure checkpoint access across sessions with CheckpointAccess.
durableNoneConfigure approval recovery across process restarts with DurableApprovalConfig.

Approval wait settings →

PythonOpenEight configuration
import os
from openeight import OpenEightConfig

openeight_config = OpenEightConfig(
    agent_name=os.environ["OPENEIGHT_AGENT_NAME"],
    endpoint=os.environ["OPENEIGHT_ENDPOINT"],
    credential=os.environ["OPENEIGHT_API_KEY"],
)

Expected result · Pass this as openeight=openeight_config.

Pass the configuration to your Agent →

Errors and content

Handle SDK errors using their stable code or reason. Content capture is off by default; opt in and redact only what you need. Do not expose credentials or provider error bodies.

Integration snippets · use your model, tools and inputs. Handle SDK failures separately from model errors. Output capture is optional; this callback replaces every captured output.

Pythonreference_errors_sync.py
from openeight import APIError, ConfigurationError

try:
    result = agent.invoke(inputs)
except ConfigurationError as error:
    print("Check integration configuration:", error.reason)
except APIError as error:
    print("OpenEight request failed:", error.code)
# Inspect the failing stage; do not repeat a business effect to repair telemetry.
# Application/model errors are not handled by these two SDK error branches.
Pythonreference_content.py
import os
from openeight import OpenEightConfig, TelemetryContentContext
from openeight.langchain import create_agent

def redact(context: TelemetryContentContext, value):
    return "[REDACTED]"  # Replace captured output; never log the original value.

openeight_config = OpenEightConfig(
    agent_name=os.environ["OPENEIGHT_AGENT_NAME"],
    endpoint=os.environ["OPENEIGHT_ENDPOINT"],
    credential=os.environ["OPENEIGHT_API_KEY"],
    capture_content="outputs",
    redact_content=redact,
)
agent = create_agent(model=model, tools=tools, openeight=openeight_config)
# Invoke normally. The callback must be fast, synchronous and thread-safe.

Expected result · SDK error branches expose stable reason/code fields, not raw provider responses. The redactor replaces optional captured output; required policy-selected inputs are still sent for authorization. Outputs can contain sensitive data, so choose capture deliberately.

OpenEight / Developer docsPython SDK 0.0.1

Search documentation

Build with OpenEightBuild or connect an agent, configure its controls, and inspect its activity.
Build your first agentDefine a model and tools, create an agent with OpenEight, configure policies, and run it.
Connect an existing agentKeep your existing model, tools, and agent logic. Add the OpenEight Python SDK where your agent calls tools so a policy can allow a call, block it, or pause it for approval.
Refund walkthroughSee how OpenEight checks a refund before the tool runs. USD refunds through $100 can proceed. Larger USD refunds and refunds in other currencies wait for a reviewer. All receipts in this walkthrough are simulated.
Integrate LangChainConnect your existing LangChain agent to OpenEight and verify its first governed tool call.
Integrate Deep AgentsConnect your existing Deep Agents agent to OpenEight and verify its first governed tool call.
Custom integrationsUse OpenEight with an Agent that calls tools directly or uses another framework.
Observe without enforcementConnect your Agent’s OpenTelemetry exporter to see Runs and tool activity in OpenEight. Tool calls proceed without policy checks or approval requests.
How governance worksBefore your Agent runs a governed tool, OpenEight checks the request against its active policies.
Prepare tools for governanceCheck how OpenEight classifies your Agent’s tools and confirm the intent Assist will use to draft policies.
Create policies with AssistAssist drafts rules and test cases from a policy intent. Review what the rules allow, deny or hold for approval before activating them.
Handle approvalsReview a pending tool call and decide whether the Agent may continue.
Inspect decisionsSee how your policies applied to a tool call and find out whether it executed.
Inspect runs and eventsOpen a Run to see which tools your Agent called, how long they took, and what status the Agent reported.
Configure model pricingModel rates apply across every Workspace in your organization. OpenEight uses them to calculate spend from recorded usage.
Set Agent budgetsSet cost and token limits for an Agent.
Send approval notifications to SlackSend approval requests to a Slack channel so reviewers can open them in the OpenEight Console.
Export and verify evidenceExport a Workspace evidence bundle, establish trust in its signing key, and verify recorded evidence offline with the OpenEight CLI.
TroubleshootingDiagnose SDK startup, tool publication, approval, and delivery issues.
Calls and sessionsChoose when to open a session and how to manage resources across calls.
Stream results and clean upRead incremental agent results and release resources when a reader stops early.
Threads and checkpointsSave a conversation between calls so your Agent can pick up where it left off.
Delivery and shutdown checksFlush buffered work and inspect delivery before shutdown.
Compatibility and installationFind your integration, supported runtime and SDK version.
ConfigurationConfigure connection settings, approval waiting and content capture.
Constructors and executionCreate an agent and choose its invocation methods.
LangChain optionsLook up structured output, configurable models and LangChain execution limits.
Deep Agents optionsConfigure root and child tools, filesystem permissions and MCP sources.
Tool publication and readinessPublish tool schemas, find acknowledged versions and check policy readiness.
Approval waiting and replayA managed Agent can wait in the running process or return a waiting thread for your code to resume. With a direct Python client, your code polls and replays the request.
Python API signaturesLook up parameters, defaults and return types for OpenEight Python SDK 0.0.1.