This release is a pre-release and may not be stable for production use.
Control Plane Python SDK
Integration SDK for AgentScope Service: framework observation, session events, application contracts and collaboration clients.
Install the agentscope-service-sdk version listed in the Service release manifest, or install a downloaded wheel:
python -m pip install ./agentscope_service_sdk-VERSION-py3-none-any.whl
Python 3.9+ is required by the package metadata. grpcio and protobuf constraints are declared in pyproject.toml. Optional OpenClaw WebSocket support is available through agentscope-service-sdk[openclaw].
Choose a transport before connecting
Standard Service deployments support outbound HTTP execution: instrument(..., control_plane_http=base, transport="http"). The worker registers using its bootstrap credential, then uses its scoped registration credential at /api/v1/agent-runtime/exchange. Commands are acknowledged after acceptance; event batches retain their durable journal until the separate event ACK. No inbound worker port is needed; set start_http=False when the optional observation contract server is not used.
transport="grpc" selects ASDP for deployments with a reachable gRPC listener; pass control_plane="host:port". The legacy parameter name start_grpc=False disables either selected push transport and its advertised execution/reporting capabilities. It is only useful for standalone observation. Do not use an HTTP port as a gRPC address.
ServiceClient provides snapshot, paginated events, SSE, capabilities, commands, actions, usage, artifacts and webhooks. ManagementClient provides Applications, Agents, Teams, Workflow definitions, runtime policies and application credentials. Management uses a platform token; invocation uses an application API key or an authorized platform token. API keys require an Application, explicit target grants, and scopes. Use create_session(target) followed by submit(session_id, ..., idempotency_key=...) for Agents, Teams, and Workflows.
See ../../examples/service-api/README.md for a complete API-only bootstrap and reconnect/approval flow. AsyncInvokeAdapter and AgentScopeRunnerAdapter execute fresh framework instances with explicit input mapping. Automatic framework detection selects observation adapters, not execution runners.
Develop
python -m pip install -e '.[dev]'
python -m pytest
python -m build
Licensed under Apache-2.0; see LICENSE.
Event journal records are limited to 16 MiB. HTTP batches target 16 MiB and requests allow 32 MiB; gRPC messages allow 32 MiB. Oversized execution events raise explicitly rather than truncating. Store large tool output as an artifact and emit its reference.
Metadata
Release files for agentscope-service-sdk 2.1.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentscope_service_sdk-2.1.0b1.tar.gz | 93.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentscope_service_sdk-2.1.0b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 191.2 kB
Release files / agentscope_service_sdk-2.1.0b1.tar.gz
| Download URL | agentscope_service_sdk-2.1.0b1.tar.gz |
|---|---|
| Size | 93.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0ecb056472d0c4345024240edda70b1c753846cf1cfa934f6823a459524e95b
|
|
BLAKE2b-256 checksum How to use checksums |
6d77893e79464c5dd185eeef35493ee3755555f707cdd412cfe8811bea8c6da3
|
| 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 9, 2026.
Transparency logRelease files / agentscope_service_sdk-2.1.0b1-py3-none-any.whl
| Download URL | agentscope_service_sdk-2.1.0b1-py3-none-any.whl |
|---|---|
| Size | 97.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
819a20b6a3cd263efab67ca0992a5e9284caf40230da1ff7ccb19aea9f6fab6c
|
|
BLAKE2b-256 checksum How to use checksums |
232c92453471ccdc3f23e43dde3de2afb456b154e1a61c87d701fbab1164632c
|
| 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 9, 2026.
Transparency log