Skip to main content

MobileOPS Managed Agent Python SDK

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

The SDK exposes five 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.
  • client.vaults manages credential vaults and their write-only credentials.
  • client.sandbox_profiles manages sandbox profiles (运行环境).

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.

import os

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
profile = await client.sandbox_profiles.create(
    name="prod",
    spec={"network": {"allow": ["*.example.com"]}},
)
vault = await client.vaults.create(name="prod")
await client.vaults.credentials.create(
    vault["id"],
    name="GRAFANA_TOKEN",
    value=os.environ["GRAFANA_TOKEN"],
    allowed_hosts=["grafana.example.com"],
)
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}/
    }],
    sandbox_profile=profile["id"],
    credential_vault=vault["id"],
)

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.

Metadata

Release files for mobileops-managed-agent 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mobileops-managed-agent 0.3.1
File Size Uploaded Provenance
mobileops_managed_agent-0.3.1.tar.gz 18.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mobileops-managed-agent 0.3.1
File Interpreter ABI Platform
mobileops_managed_agent-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 43.0 kB

Release files / mobileops_managed_agent-0.3.1.tar.gz

Download URL mobileops_managed_agent-0.3.1.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e93404d4c5f90084724fb54c65b6a5eb27a2c03ad8f986692650572c48e7babe
BLAKE2b-256 checksum
How to use checksums
591a3afc972e47fc2a27d341e534b972691bac38c445af6fef86f4fe89b554c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / mobileops_managed_agent-0.3.1-py3-none-any.whl

Download URL mobileops_managed_agent-0.3.1-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6f6cb32e07a05567cc16a7744ce8e5ac26a92c99db33271bacca3fef62f4fe1
BLAKE2b-256 checksum
How to use checksums
58a5ca9101c5cab4d21cd446548f018747248fe6bbc96f383df8fd84e898ae26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Security for mobileops-managed-agent 0.3.1

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mobileops_managed_agent-0.3.1.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 Oct 14, 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.

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