Skip to content
OpenEightDeveloper docs
Docs / SDK reference / Python API signatures

Python API signatures

Look up parameters, defaults and return types for OpenEight Python SDK 0.0.1.

On this pageConfigurationAgent constructorsExecution and lifecycleTool publication and readinessApproval and replayRun and event reporting

Configuration

openeight.OpenEightConfig

Python
OpenEightConfig(
    *,
    agent_name: str,
    endpoint: str | None = None,
    credential: str | None = None,
    sources: tuple[MCPSource, ...] = (),
    mcp_tools: ToolSelections | None = None,
    delivery: DeliveryConfig | None = None,
    discovery: DiscoveryConfig | None = None,
    on_block: Literal['message', 'raise'] = 'message',
    approval: ApprovalConfig | None = None,
    durable: DurableApprovalConfig | None = None,
    capture_content: ContentCapture = 'none',
    redact_content: Redactor | None = None,
    runtime_models: RuntimeModelConfig | None = None,
    checkpoints: CheckpointAccess | None = None,
)

openeight.Governance

Python
Governance(
    *,
    agent_name: str,
    endpoint: str,
    credential: str,
    sources: tuple = (),
    mcp_tools: Mapping | None = None,
    delivery: DeliveryConfig | None = None,
    discovery: Any = None,
    on_block: str = 'message',
    approval: Any = None,
    durable: Any = None,
    capture_content: Literal['none', 'inputs', 'outputs', 'all'] = 'none',
    redact_content: Callable[[TelemetryContentContext, JSONValue], JSONValue | None] | None = None,
)

openeight.RuntimeModelConfig

Python
RuntimeModelConfig(*, variants: tuple[ModelVariant, ...])

openeight.ModelVariant

Python
ModelVariant(*, name: str, configurable: Mapping[str, JSONValue])

Agent constructors

openeight.langchain.create_agent

Python
def create_agent(
    model: ModelInput,
    tools: Sequence[BaseTool | Callable[..., Any]]=(),
    *,
    openeight: OpenEightConfig | OpenEightConfigDict,
    middleware: Sequence[AgentMiddleware]=(),
    system_prompt: str | SystemMessage | None=None,
    state_schema: type[Any] | None=None,
    context_schema: type[Any] | None=None,
    checkpointer: BaseCheckpointSaver | None=None,
    store: BaseStore | None=None,
    response_format: ResponseFormatInput=None,
    name: str | None=None,
    resources: ManagedResourceFactory | None=None,
) -> ManagedAgent | DurableAgent

openeight.deepagents.create_deep_agent

Python
def create_deep_agent(
    model: ModelInput,
    tools: Sequence[BaseTool | Callable[..., Any]]=(),
    *,
    openeight: OpenEightConfig | OpenEightConfigDict,
    middleware: Sequence[AgentMiddleware]=(),
    system_prompt: str | SystemMessage | None=None,
    backend: Any=None,
    permissions: Sequence[FilesystemPermission] | None=None,
    skills: Sequence[str] | None=None,
    memory: Sequence[str] | None=None,
    subagents: Sequence[Mapping[str, Any]]=(),
    interrupt_on: dict[str, bool | dict[str, Any]] | None=None,
    state_schema: type[Any] | None=None,
    context_schema: type[Any] | None=None,
    checkpointer: BaseCheckpointSaver | None=None,
    store: BaseStore | None=None,
    response_format: ResponseFormatInput=None,
    name: str | None=None,
    tool_surfaces: Sequence[ToolSurface] | None=None,
    catalog_naming: str='hashed-v1',
    catalog_descriptions: Sequence[CatalogDescription]=(),
    include_general_purpose: bool | None=None,
    resources: ManagedResourceFactory | None=None,
    durable_deployment: DeepAgentsDeploymentConfig | None=None,
    durability: LocalDurability | None=None,
) -> ManagedAgent | DurableAgent | LocalDurableAgent

openeight.langchain.observe

Python
def observe(
    model: ModelInput,
    tools: Sequence[BaseTool | Callable[..., Any]]=(),
    *,
    openeight: OpenEightConfig | OpenEightConfigDict,
    middleware: Sequence[AgentMiddleware]=(),
    system_prompt: str | SystemMessage | None=None,
    state_schema: type[Any] | None=None,
    context_schema: type[Any] | None=None,
    checkpointer: BaseCheckpointSaver | None=None,
    store: BaseStore | None=None,
    response_format: ResponseFormatInput=None,
    name: str | None=None,
    resources: ManagedResourceFactory | None=None,
) -> ManagedAgent

openeight.deepagents.observe

Python
def observe(
    model: ModelInput,
    tools: Sequence[BaseTool | Callable[..., Any]]=(),
    *,
    openeight: OpenEightConfig | OpenEightConfigDict,
    middleware: Sequence[AgentMiddleware]=(),
    system_prompt: str | SystemMessage | None=None,
    backend: Any=None,
    permissions: Sequence[FilesystemPermission] | None=None,
    skills: Sequence[str] | None=None,
    memory: Sequence[str] | None=None,
    subagents: Sequence[Mapping[str, Any]]=(),
    interrupt_on: dict[str, bool | dict[str, Any]] | None=None,
    state_schema: type[Any] | None=None,
    context_schema: type[Any] | None=None,
    checkpointer: BaseCheckpointSaver | None=None,
    store: BaseStore | None=None,
    response_format: ResponseFormatInput=None,
    name: str | None=None,
    tool_surfaces: Sequence[ToolSurface] | None=None,
    catalog_naming: str='hashed-v1',
    catalog_descriptions: Sequence[CatalogDescription]=(),
    include_general_purpose: bool | None=None,
    resources: ManagedResourceFactory | None=None,
) -> ManagedAgent

Client

Python
def __init__(
    self,
    base_url: str,
    *,
    api_key: str,
    agent_name: str,
    integration: AgentIntegration | None=None,
    timeout: float=30.0,
    transport: httpx.BaseTransport | None=None,
) -> None

Execution and lifecycle

ManagedAgent.invoke

Python
def invoke(
    self,
    input: Any,
    config: RunnableConfig | None=None,
    *,
    context: Any=None,
) -> Any

ManagedAgent.ainvoke

Python
async def ainvoke(
    self,
    input: Any,
    config: RunnableConfig | None=None,
    *,
    context: Any=None,
) -> Any

ManagedAgent.batch

Python
def batch(
    self,
    inputs: Sequence[Any],
    config: RunnableConfig | list[RunnableConfig] | None=None,
    *,
    return_exceptions: bool=False,
    context: Any=None,
) -> list[Any]

ManagedAgent.abatch

Python
async def abatch(
    self,
    inputs: Sequence[Any],
    config: RunnableConfig | list[RunnableConfig] | None=None,
    *,
    return_exceptions: bool=False,
    context: Any=None,
) -> list[Any]

ManagedAgent.stream

Python
def stream(
    self,
    input: Any,
    config: RunnableConfig | None=None,
    *,
    context: Any=None,
    stream_mode: StreamMode | list[StreamMode]='values',
    subgraphs: bool=False,
) -> ManagedStream

ManagedAgent.astream

Python
async def astream(
    self,
    input: Any,
    config: RunnableConfig | None=None,
    *,
    context: Any=None,
    stream_mode: StreamMode | list[StreamMode]='values',
    subgraphs: bool=False,
) -> AsyncGenerator[Any, None]

ManagedAgent.open

Python
def open(self)

ManagedAgent.aopen

Python
async def aopen(self)

ManagedAgent.close

Python
def close(self, timeout: float=10.0) -> DeliveryStatus

ManagedAgent.aclose

Python
async def aclose(self, timeout: float=10.0) -> DeliveryStatus

ManagedAgent.validate

Python
def validate(self) -> CompatibilityReport

ManagedAgent.avalidate

Python
async def avalidate(self) -> CompatibilityReport

ManagedAgent.lifecycle_status

Python
def lifecycle_status(self) -> LifecycleStatus

openeight.LifecycleStatus

Python
LifecycleStatus(
    *,
    state: LifecycleState,
    cleanup_complete: bool,
    effects_settled: bool,
    cleanup_terminal: bool,
    error_code: str | None,
    active_executions: int,
)

Client.close

Python
def close(self) -> None

Tool publication and readiness

ToolRegistration

Python
def __init__(
    self,
    *,
    name: str,
    description: str,
    input_schema: Mapping[str, Any],
    expected_tool_id: str | None=None,
    expected_current_version_id: str | None=None,
) -> None

Client.register_tools

Python
def register_tools(
    self,
    registrations: Sequence[ToolRegistration],
    *,
    timeout: float | None=None,
) -> tuple[RegistrationResult, ...]

Client.get_tool_readiness

Python
def get_tool_readiness(
    self,
    tool_version_ids: Sequence[str],
    *,
    timeout: float | None=None,
) -> AgentReadiness

ManagedAgent.publish

Python
def publish(self) -> CatalogSnapshot

ManagedAgent.apublish

Python
async def apublish(self) -> CatalogSnapshot

ManagedAgent.readiness

Python
def readiness(self, timeout: float=10.0) -> CatalogReadiness

ManagedAgent.areadiness

Python
async def areadiness(self, timeout: float=10.0) -> CatalogReadiness

ManagedAgent.catalog_snapshot

Python
def catalog_snapshot(self) -> CatalogSnapshot

ManagedAgent.catalog_status

Python
def catalog_status(self) -> CatalogStatus

ManagedAgent.refresh_tools

Python
def refresh_tools(self, timeout: float=10.0) -> CatalogStatus

ManagedAgent.arefresh_tools

Python
async def arefresh_tools(self, timeout: float=10.0) -> CatalogStatus

Approval and replay

openeight.langchain.ApprovalConfig

Python
ApprovalConfig(
    timeout: float = 3600.0,
    poll_interval: float = 0.5,
    poll_backoff_multiplier: float = 2.0,
    poll_max_interval: float = 5.0,
    poll_jitter: float = 0.1,
)

Client.decide

Python
def decide(
    self,
    *,
    decision_id: str='',
    run_id: str='',
    workflow_id: str | None=None,
    workflow_version: str | None=None,
    tool_id: str,
    tool_version_id: str,
    input: Any,
    policy_contract_set_digest: str,
    selected_values: Sequence[dict[str, Any]],
    source_time: datetime | str | None=None,
    timeout: float | None=None,
) -> DecisionResult

Client.approval_state

Python
def approval_state(self, decision_id: str, *, timeout: float | None=None) -> str

openeight.tools.collect_selected_values

Python
def collect_selected_values(
    arguments: Mapping[str, JSONInput],
    readiness: ToolReadiness,
) -> tuple[dict[str, JSONInput], ...]

Run and event reporting

Client.governed_run

Python
def governed_run(
    self,
    *,
    identity: RunIdentity | None=None,
    run_id: str='',
    started_at: datetime | str | None=None,
    attributes: Mapping[str, Any] | None=None,
    workflow_id: str | None=None,
    workflow_version: str | None=None,
) -> GovernedRun

Client.write_telemetry

Python
def write_telemetry(
    self,
    *,
    runs: list[dict[str, Any]] | None=None,
    events: list[dict[str, Any]] | None=None,
    timeout: float | None=None,
) -> None

Client.buffered_observe

Python
def buffered_observe(
    self,
    *,
    max_records: int=1000,
    max_bytes: int=8 * 1024 * 1024,
    flush_records: int=100,
    flush_bytes: int=3 * 1024 * 1024,
    flush_interval: float=1.0,
    max_request_records: int=1000,
    max_request_bytes: int=4 * 1024 * 1024,
) -> BufferedObserveWriter

GovernedRun.submit_event

Python
def submit_event(self, event: Event) -> None

GovernedRun.flush

Python
def flush(self) -> None

GovernedRun.suspend

Python
def suspend(self) -> RunCheckpoint

GovernedRun.close

Python
def close(self) -> None

ManagedAgent.delivery_status

Python
def delivery_status(self) -> DeliveryStatus

ManagedAgent.flush

Python
def flush(self, timeout: float=10.0) -> DeliveryStatus

ManagedAgent.aflush

Python
async def aflush(self, timeout: float=10.0) -> DeliveryStatus
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.