Skip to main content

MobileOPS Managed Agent Python SDK

Server-side Python SDK for the MobileOPS Managed Agent API.

The SDK exposes three surfaces:

  • client.agent wraps the LangGraph runtime client and exposes the supported Assistant CRUD methods at client.agent.assistants.
  • client.files exposes MobileOPS Sandbox Workspace file routes.
  • client.resources manages Context Hub resources, versions, and latest-version files.

Assistant create and update retain LangGraph's ordinary arguments, while persisted configuration is exposed through product fields. Pass response_schema to persist a Draft 2020-12 object schema, read the Run's validated result from final state structured_response, and pass response_schema=None on update to clear it.

Note: the Agent Server freezes the Assistant config into each Thread at creation, and that frozen copy takes precedence over the Assistant's current config on later Runs. Setting, changing, or clearing response_schema therefore only affects Runs started on new Threads; existing Threads keep the schema captured at their creation.

from mobileops_managed_agent import MobileOpsManagedAgentClient

client = MobileOpsManagedAgentClient(api_url=api_url, api_key=api_key)

thread = await client.agent.threads.create()
await client.agent.runs.create(thread["thread_id"], assistant_id, input=input)

skill = await client.resources.create("skills", zip_bytes)  # slug inferred
assistant = await client.agent.assistants.create(
    name="Operations agent",
    skills=[{
        "ref": skill["ref"],  # e.g. incident-response@sha256-…
        "target_path": "/workspace/skills",  # zip already contains {slug}/
    }],
)

await client.resources.versions.create("skills", skill["slug"], next_zip_bytes)
await client.resources.files.list("skills", skill["slug"])
await client.files.list(thread["thread_id"], "/workspace")

Keep MobileOPS Managed Agent API keys in server-side code only.

Download files

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

Source Distribution

mobileops_managed_agent-0.2.2.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

mobileops_managed_agent-0.2.2-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file mobileops_managed_agent-0.2.2.tar.gz.

File metadata

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

File hashes

Hashes for mobileops_managed_agent-0.2.2.tar.gz
Algorithm Hash digest
SHA256 77ab76676d4f19ef63e0bf2642450cfa73edd5324df5fb552fc0429bd65a5436
MD5 1c17cde49e3dbcef65bf7a3ef5ed7bdd
BLAKE2b-256 e4f6b4a4619c2e66b6eab53e91d6d2091cad9a55807cd1e26763eefa5f88b360

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobileops_managed_agent-0.2.2.tar.gz:

Publisher: publish-sdks.yml on InnoMindX/deepagent

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

File details

Details for the file mobileops_managed_agent-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mobileops_managed_agent-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bade87f8f1cf93c3d5b8382bf60d2ffae1402970b93df6572b9560dcb31652ad
MD5 e7eecf00632754c889833cb85d83a79f
BLAKE2b-256 fcedff07b8d0864c1eea08df242b7e5eedfb30346aed0dd6c52d5c588cddf8c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobileops_managed_agent-0.2.2-py3-none-any.whl:

Publisher: publish-sdks.yml on InnoMindX/deepagent

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

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

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