Skip to main content

Agent Envd Client

a13n-envd-client is the Python client for the Agent Environment Interaction Protocol (EIP). It belongs to the agent-envd release group and is versioned and published together with agent-envd.

Available surface

The package currently provides:

  • generated EIP 1.0 Pydantic wire models, canonical codecs, method metadata, and typed EIPClient methods for the complete protocol surface;
  • RequestCoordinator for bounded request IDs, concurrent response correlation, data-frame routing, typed errors, and no automatic ambiguous retry;
  • StdioTransport for multiplexed content-length control and binary data frames over trusted parent-supplied asyncio process pipes;
  • HttpTransport for authenticated Host-dialed control requests and raw streaming transfer bodies over HTTP(S);
  • AcceptedWebSocketTransport for EIP framing over an already-authenticated reverse-WebSocket ServerConnection accepted by the Host;
  • EIPSession for initialization, exact required-method/generation/descriptor validation, monotonic method-and-limit refresh that rejects topology/posture/feature changes or widening, and session close;
  • high-level EIPFileReader and EIPFileWriter async context managers, exposed by EIPSession.open_reader() and EIPSession.open_writer(), for bounded streaming file transfer.

Configured daemons can expose resource reads, atomic mutations, find, search, receipts, and port observation through the generated client. Trusted stdio, Host-dialed HTTP(S), and Host-accepted reverse WebSocket carry the same EIP method/session contract. Provider process creation, HTTP credential issuance, reverse-WebSocket listener authentication, and lifecycle policy remain outside this package.

Example

The process launch below is illustrative fixture code. Production launch configuration belongs to the provider/Host boundary.

import asyncio
import os

from a13n_envd_client import EIPSession, StdioTransport


async def main() -> None:
    process = await asyncio.create_subprocess_exec(
        "agent-envd",
        stdin=asyncio.subprocess.PIPE,
        stdout=asyncio.subprocess.PIPE,
        stderr=asyncio.subprocess.PIPE,
        env={
            "PATH": os.environ["PATH"],
            "AGENT_ENVD_ENVIRONMENT_ID": "env-provider-owned-id",
            # Use this only when an outer sandbox owns containment.
            "AGENT_ENVD_EXECUTION_ISOLATION": "disabled",
        },
    )
    session = await EIPSession.initialize(
        StdioTransport.from_process(process),
        expected_environment_id="env-provider-owned-id",
        required_methods=("environment.describe", "session.close"),
    )
    descriptor = await session.describe()
    print(descriptor.generation)
    await session.close()
    await process.wait()


asyncio.run(main())

An EIPMethodError contains the generated typed EIPError. Carrier timeouts and cancellation never claim that an already sent operation failed or was absent; the client does not retry a possibly dispatched mutation automatically. Mutation callers reconcile by reusing the same operation ID and semantic request while evidence remains, querying its receipt, or observing native state before starting another operation.

Versioning

The Python package and daemon artifacts share one stable X.Y.Z or RC X.Y.Z-rc.N agent-envd release identity. Python package metadata represents the RC as the equivalent PEP 440 version X.Y.ZrcN; Cargo, binary archives, and container tags retain the canonical SemVer spelling. The negotiated EIP major and minor version remains an independent wire-compatibility identity.

The accepted protocol, generation, ownership, and compatibility design is documented in the agent-envd specification.

License

Licensed under the Apache License 2.0.

Download files

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

Source Distribution

a13n_envd_client-0.0.3.tar.gz (69.4 kB view details)

Uploaded Source

Built Distribution

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

a13n_envd_client-0.0.3-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

Details for the file a13n_envd_client-0.0.3.tar.gz.

File metadata

  • Download URL: a13n_envd_client-0.0.3.tar.gz
  • Upload date:
  • Size: 69.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for a13n_envd_client-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ce2fbfc4ac1e60f8f0b0fd3c8ceb19f7b9c087932cff4ac0161f7afa96f33ad2
MD5 0c38b65af5354a34ea3263b302f3943e
BLAKE2b-256 de6f7d2975cc3880f95587897c6bde65a0aaf7b64a154ef35404f278401be4c5

See more details on using hashes here.

File details

Details for the file a13n_envd_client-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: a13n_envd_client-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 48.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for a13n_envd_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e422063bd85f02fcfd7864d2deaa9fe65e6be243a2978e8fc5c09447a163d6e7
MD5 db2ca76a95d203b2ff9aced1fb290379
BLAKE2b-256 8aee46f6a76177271d868f80fc4f6eca157991c2cd8f627f21e0c0060790329a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.10

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

This release

0.0.3 This release

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