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.0.tar.gz (12.6 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.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mobileops_managed_agent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1dd5440897a54ae8f724f108ce3ac1ec0d35ae7b26752570794b17219e2bbd40
MD5 1e5c204b260568669f50bb0bbd7a6377
BLAKE2b-256 975d59087332c5f8bb1f86cdd14c88bdfbd8b2e84ff2509101e6014151e2f36d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobileops_managed_agent-0.2.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mobileops_managed_agent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10d381bc6bca1b9934a06476cff203ea9246e3d05379fa3706c8c13ef53ff8e5
MD5 e16c0c1393c36d1e9bb434c711f58710
BLAKE2b-256 9823d2fd34e9a511dfe25750f5f8721d45d38b28536344af98dd0f164c4feb15

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobileops_managed_agent-0.2.0-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

0.2.2

2 files

0.2.1

2 files

This release

0.2.0 This release

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