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"],
    project=os.environ["MOBIUS_PROJECT"],
))

try:
    turn = client.invoke_agent(mobius.InvokeAgentOptions(
        agent_name="launch-scout",
        idempotency_key=inbound_message_id,
        content=[{"type": "text", "text": "Check the name and create a shortlist."}],
        config=mobius.InlineAgentConfig(toolkits=[
            mobius.InlineToolkit(name="naming", actions=["naming.domain.check"]),
            mobius.InlineToolkit(name="shortlists", actions=["shortlists.create"]),
        ]),
    ))
    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":
        # Choose explicitly: wait and invoke again, or client.nudge_session(...).
        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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepnoodle_mobius-0.0.59.tar.gz (114.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepnoodle_mobius-0.0.59-py3-none-any.whl (120.2 kB view details)

Uploaded Python 3

File details

Details for the file deepnoodle_mobius-0.0.59.tar.gz.

File metadata

  • Download URL: deepnoodle_mobius-0.0.59.tar.gz
  • Upload date:
  • Size: 114.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for deepnoodle_mobius-0.0.59.tar.gz
Algorithm Hash digest
SHA256 0b3ba5403eb67cdd73280ee60ad4762bbedf7d1e9902b97b23dd3a6aa6ca3454
MD5 eb2616be2d7fa675cd37bad782852f62
BLAKE2b-256 162e2fe17793bf1545a919edf20b734f2199fd7cb72f6441f8d531b1b3318422

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepnoodle_mobius-0.0.59.tar.gz:

Publisher: release-pypi.yml on deepnoodle-ai/mobius

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deepnoodle_mobius-0.0.59-py3-none-any.whl.

File metadata

File hashes

Hashes for deepnoodle_mobius-0.0.59-py3-none-any.whl
Algorithm Hash digest
SHA256 da280e67652e9a387e59587dbd0449254663f65db8ad0daa63acdc3df7eeb2b2
MD5 dcdb6e64cdcf49da222a2e09dc9d39a6
BLAKE2b-256 dab47f8a54fb22b8eba24b152b2ccc3c02b354230cd4d58125f206c008bd7050

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepnoodle_mobius-0.0.59-py3-none-any.whl:

Publisher: release-pypi.yml on deepnoodle-ai/mobius

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.0.61

2 files

0.0.60

2 files

This release

0.0.59 This release

2 files

0.0.58

2 files

0.0.57

2 files

0.0.56

2 files

0.0.55

2 files

0.0.54

2 files

0.0.53

2 files

0.0.52

2 files

0.0.51

2 files

0.0.50

2 files

0.0.49

2 files

0.0.48

2 files

0.0.47

2 files

0.0.46

2 files

0.0.45

2 files

0.0.44

2 files

0.0.43

2 files

0.0.42

2 files

0.0.41

2 files

0.0.40

2 files

0.0.39

2 files

0.0.38

2 files

0.0.37

2 files

0.0.36

2 files

0.0.35

2 files

0.0.34

2 files

0.0.32

2 files

0.0.31

2 files

0.0.30

2 files

0.0.29

2 files

0.0.28

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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