Python SDK for Mobius agent loops and workers
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepnoodle_mobius-0.0.45.tar.gz.
File metadata
- Download URL: deepnoodle_mobius-0.0.45.tar.gz
- Upload date:
- Size: 88.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1926547529cf9e86bbf1f8528758448f77e6422bc14d6b69426061f2f4ba6fe7
|
|
| MD5 |
74cc60f7789d9d236150f7d6cfcc6dca
|
|
| BLAKE2b-256 |
bdc74e77da6f29996b06e83f18eec32ce2f5b13efb98811e84f5c0df5af39722
|
Provenance
The following attestation bundles were made for deepnoodle_mobius-0.0.45.tar.gz:
Publisher:
release-pypi.yml on deepnoodle-ai/mobius
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deepnoodle_mobius-0.0.45.tar.gz -
Subject digest:
1926547529cf9e86bbf1f8528758448f77e6422bc14d6b69426061f2f4ba6fe7 - Sigstore transparency entry: 2163808820
- Sigstore integration time:
-
Permalink:
deepnoodle-ai/mobius@c0394ea82f148fb0a4f592fc4a5ee0f29678c373 -
Branch / Tag:
refs/tags/pypi-v0.0.45 - Owner: https://github.com/deepnoodle-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@c0394ea82f148fb0a4f592fc4a5ee0f29678c373 -
Trigger Event:
push
-
Statement type:
File details
Details for the file deepnoodle_mobius-0.0.45-py3-none-any.whl.
File metadata
- Download URL: deepnoodle_mobius-0.0.45-py3-none-any.whl
- Upload date:
- Size: 94.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
494970b6a79f4e0cf8ce4e8a4ad16543ff0e934f75a4f8d1f4b14580ddf51441
|
|
| MD5 |
a28c0691b7d5f850962f5087e1cf0426
|
|
| BLAKE2b-256 |
177ca71aaed49ac44cfe3a5e929c0382d7dcf25ff1e7ccadb32fc4614beefb95
|
Provenance
The following attestation bundles were made for deepnoodle_mobius-0.0.45-py3-none-any.whl:
Publisher:
release-pypi.yml on deepnoodle-ai/mobius
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deepnoodle_mobius-0.0.45-py3-none-any.whl -
Subject digest:
494970b6a79f4e0cf8ce4e8a4ad16543ff0e934f75a4f8d1f4b14580ddf51441 - Sigstore transparency entry: 2163809031
- Sigstore integration time:
-
Permalink:
deepnoodle-ai/mobius@c0394ea82f148fb0a4f592fc4a5ee0f29678c373 -
Branch / Tag:
refs/tags/pypi-v0.0.45 - Owner: https://github.com/deepnoodle-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@c0394ea82f148fb0a4f592fc4a5ee0f29678c373 -
Trigger Event:
push
-
Statement type: