Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

AgentField Python SDK

The AgentField SDK provides a production-ready Python interface for registering agents, executing workflows, and integrating with the AgentField control plane.

Installation

pip install agentfield

To work on the SDK locally:

git clone https://github.com/Agent-Field/agentfield.git
cd agentfield/sdk/python
python -m pip install -e .[dev]

Quick Start

from agentfield import Agent

agent = Agent(
    node_id="example-agent",
    agentfield_server="http://localhost:8080",
    dev_mode=True,
)

@agent.reasoner()
async def summarize(text: str) -> dict:
    result = await agent.ai(
        prompt=f"Summarize: {text}",
        response_model={"summary": "string", "tone": "string"},
    )
    return result

if __name__ == "__main__":
    agent.serve(port=8001)

See docs/DEVELOPMENT.md for instructions on wiring agents to the control plane.

Testing

pytest

To run coverage locally:

pytest --cov=agentfield --cov-report=term-missing

License

Distributed under the Apache 2.0 License. See the project root LICENSE for details.

Metadata

Release files for agentfield 0.1.42rc11

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

Source distribution (sdist)

Source distribution for agentfield 0.1.42rc11
File Size Uploaded Provenance Actions
agentfield-0.1.42rc11.tar.gz 164.4 kB Without provenance Details for agentfield-0.1.42rc11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentfield 0.1.42rc11
File Interpreter ABI Platform Actions
agentfield-0.1.42rc11-py3-none-any.whl Python 3 none any Details for agentfield-0.1.42rc11-py3-none-any.whl

Total release size: 346.5 kB

Release files / agentfield-0.1.42rc11.tar.gz

Download URL agentfield-0.1.42rc11.tar.gz
Size 164.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4f1ee3b4f497fcbeb9011ea317969e3fda00d3a7f6d037003f8d2362439187ab
BLAKE2b-256 checksum
How to use checksums
c2b0bd41a45cb0a4e6bee3af38ceb8acf158852933675789f0884dc3a5bcd743
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / agentfield-0.1.42rc11-py3-none-any.whl

Download URL agentfield-0.1.42rc11-py3-none-any.whl
Size 182.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02128366a0547d4b5d16d3cb7dc181795331aa5e61a652212fca168f2d5c4d27
BLAKE2b-256 checksum
How to use checksums
33d32200a70d55d671df8cf3cdd2b681134b4b337fb5d47ccf62d6bdfd56f95f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for agentfield 0.1.42rc11

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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