Skip to main content

agenticwf-agent-client

The client of the AgenticWF agent: the Python AgentClient and the agenticwf agent command (with agenticwf-auth-client, installed with it).

pip install agenticwf-agent-client
agenticwf agent chat "hello"                      # a new chat; prints the reply
agenticwf agent chat "and then?" --session SID
agenticwf agent task "summarise run 42" --wait    # a background task
agenticwf agent approve CALL --session SID        # a tool call that waits for you

Behind the AgenticWF server (Caddy, Logto) the commands sign in with agenticwf login; set the connection once (an administrator gets the values with docker exec agenticwf cat /var/lib/agenticwf/logto/clients.env):

export AGENTICWF_AUTH_URL=https://host.example.org
export AGENTICWF_API_URL=https://host.example.org/app
export AGENTICWF_CLIENT_ID=<Logto native app id>
export AGENTICWF_RESOURCE=<API resource indicator>
agenticwf login

Scripts and CI use a personal access token instead (AGENTICWF_TOKEN=pat_…), or a machine client (AGENTICWF_CLIENT_ID + AGENTICWF_CLIENT_SECRET).

The personal agent (agenticwf-agent serve) has its own token instead:

export AGENTICWF_AGENT_URL=http://127.0.0.1:8765
export AGENTICWF_AGENT_TOKEN_FILE=~/.agenticwf-agent/token

From Python (AgentClient.from_env() finds the agent and its token as the command does):

from agenticwf.agent.client import AgentClient

with AgentClient.from_env() as agent:
    sid = agent.create_session("demo")["id"]
    print(agent.send(sid, "hello")["reply"])
    print(agent.wait_task(agent.submit_task("summarise run 42")["task_id"])["result"])

Metadata

Release files for agenticwf-agent-client 0.0.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 agenticwf-agent-client 0.0.1
File Size Uploaded Provenance Actions
agenticwf_agent_client-0.0.1.tar.gz 9.0 kB Without provenance Details for agenticwf_agent_client-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agenticwf-agent-client 0.0.1
File Interpreter ABI Platform Actions
agenticwf_agent_client-0.0.1-py3-none-any.whl Python 3 none any Details for agenticwf_agent_client-0.0.1-py3-none-any.whl

Total release size: 16.7 kB

Release files / agenticwf_agent_client-0.0.1.tar.gz

Download URL agenticwf_agent_client-0.0.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c0900f743b5e575a4cd73487b695c183214a2a70ea34458d8d853b55c96fddfe
BLAKE2b-256 checksum
How to use checksums
3fd38fcdb839c4078d347da92347fbde833cea0e519ec326c409481b1ed99f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / agenticwf_agent_client-0.0.1-py3-none-any.whl

Download URL agenticwf_agent_client-0.0.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bad8bb88ef51825f3b05493fe60340f68360f19154b588c27016e7d1b9e0c3d
BLAKE2b-256 checksum
How to use checksums
0739bec58a65cb2572d3f4ecc9632906fb3de3b35240a1d7457f7e52b1578aaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for agenticwf-agent-client 0.0.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.

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.

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