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.9.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.9.0
File Size Uploaded Provenance Actions
deepnoodle_mobius-0.9.0.tar.gz 121.4 kB With provenance Details for deepnoodle_mobius-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 248.8 kB

Release files / deepnoodle_mobius-0.9.0.tar.gz

Download URL deepnoodle_mobius-0.9.0.tar.gz
Size 121.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4f99c63f00ef7522435c862c34fe585acaf4aa76c95397cf125be3eaeee2b90f
BLAKE2b-256 checksum
How to use checksums
dea084a477c7c232c5b7b6304d99e0e82abab551019c2b93ff7823037359f66b
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 25, 2026.

Transparency log

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

Download URL deepnoodle_mobius-0.9.0-py3-none-any.whl
Size 127.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1b8747e2096c58cb584fe2187982f9848dbd50ce268c38a6ebf4d89b0e2308b
BLAKE2b-256 checksum
How to use checksums
63247dff00a4a348ecc8404e7f79098b051c36fb949b4ca76ab966eff1a77bca
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 25, 2026.

Transparency log

Security for deepnoodle-mobius 0.9.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.9.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 25, 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.9.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