Skip to main content

deepnoodle-mobius

Python SDK for Mobius agent sessions, loops, and workers.

Multi-tool agent quickstart

import os
import deepnoodle.mobius as mobius

client = mobius.Client(mobius.ClientOptions(
    api_key=os.environ["MOBIUS_API_KEY"],
))

# Resolve the conversation once per user or thread with a stable session_key.
session = client.create_session(mobius.CreateSessionRequest(
    agent_id=agent_id,
    session_key=f"app:{account_id}:{user_id}",
))

try:
    result = client.send_session_input(session.id, mobius.SendSessionInputOptions(
        idempotency_key=inbound_message_id,
        content=[{"type": "text", "text": "Check the name and create a shortlist."}],
    ))
    turn = result.turn  # set when delivery == "new_turn"
    for update in turn.updates():
        for message in update.transcript.renderable_messages():
            print(mobius.text_of(message))
            for block in message["content"]:
                if block.get("type") == "tool_use":
                    tool = mobius.normalize_tool_use(block)
                    print((tool.resolved_action or {}).get("name", tool.wire_name))
    if turn.error:
        raise turn.error
except mobius.MobiusAPIError as error:
    if error.code == "session_turn_active":
        # A turn is already running. Wait and send again, or steer it with
        # send_session_input(..., SendSessionInputOptions(delivery="current_turn", ...)).
        pass
    else:
        raise

Use messages() for the lossless protocol view and renderable_messages() for UI. normalize_tool_use() preserves the model-facing wire fields and prefers Mobius' persisted canonical action identity. The cross-language helper guide covers nudges, reconnection, diagnostics, session management, persistence ordering, and the server-to-browser boundary.

Metadata

Release files for deepnoodle-mobius 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepnoodle-mobius 0.10.0
File Size Uploaded Provenance Actions
deepnoodle_mobius-0.10.0.tar.gz 124.1 kB With provenance Details for deepnoodle_mobius-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deepnoodle-mobius 0.10.0
File Interpreter ABI Platform Actions
deepnoodle_mobius-0.10.0-py3-none-any.whl Python 3 none any Details for deepnoodle_mobius-0.10.0-py3-none-any.whl

Total release size: 254.1 kB

Release files / deepnoodle_mobius-0.10.0.tar.gz

Download URL deepnoodle_mobius-0.10.0.tar.gz
Size 124.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c4a884494e78c88f4d7166ca094bf3a67ebcea883718669a473f14fa5f900b67
BLAKE2b-256 checksum
How to use checksums
c6cefbcd39f8299200d284b9f0639db12957fed2cb63cd2fb21be6b0803a0dba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / deepnoodle_mobius-0.10.0-py3-none-any.whl

Download URL deepnoodle_mobius-0.10.0-py3-none-any.whl
Size 130.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edbf666a3da632fa3151536af1c3e41c2fb944cf68b113e6754517a3569d3574
BLAKE2b-256 checksum
How to use checksums
0b337fe155180bc8ee7134525aede97c89dc77f49c04fae9478e11b93d4a9ccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for deepnoodle-mobius 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for deepnoodle_mobius-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page