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.12.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.12.0
File Size Uploaded Provenance Actions
deepnoodle_mobius-0.12.0.tar.gz 130.6 kB With provenance Details for deepnoodle_mobius-0.12.0.tar.gz

Built distribution (wheel)

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

Total release size: 267.0 kB

Release files / deepnoodle_mobius-0.12.0.tar.gz

Download URL deepnoodle_mobius-0.12.0.tar.gz
Size 130.6 kB
Tags Source
SHA-256 checksum
How to use checksums
215b97c9777761c1df20b5cf9d41fc1b980f3fca4a45aa2c40099cd1ccc2b591
BLAKE2b-256 checksum
How to use checksums
27fff43ea5e8cd4c819583e46ec1f6a013f82201375d203ddeec30b5c315b17a
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 Dec 3, 2026.

Transparency log

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

Download URL deepnoodle_mobius-0.12.0-py3-none-any.whl
Size 136.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56bacb3179d4c2310df3afb32865cb621df709d7a36bcea0652b64ebb004ccdf
BLAKE2b-256 checksum
How to use checksums
c475422d622712cb992a2e02a402cba359a73e1a48663e4ca98b424e95ac532d
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 Dec 3, 2026.

Transparency log

Security for deepnoodle-mobius 0.12.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.12.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 Dec 3, 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.12.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