Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Latest commit

 

History

History
42 lines (28 loc) · 873 Bytes

File metadata and controls

42 lines (28 loc) · 873 Bytes

AgenticFlow Python SDK

The Python SDK is distributed in the same package as the CLI and is importable as agenticflow_sdk.

Install

pip install agenticflow-cli

Quick start

from agenticflow_sdk import AgenticFlowSDK

sdk = AgenticFlowSDK(api_key="AGENTICFLOW_PUBLIC_API_KEY")

health = sdk.call("public.health.get")
workflow = sdk.workflows.get(workflow_id="wf_public_id")
agent = sdk.agents.get(agent_id="agent-id")
node_types = sdk.node_types.list()

Auth

from os import getenv

sdk = AgenticFlowSDK(
    api_key=getenv("AGENTICFLOW_PUBLIC_API_KEY")
)

AGENTICFLOW_PUBLIC_API_KEY is the same environment variable used by the CLI.

Running a direct operation

result = sdk.call("public.health.get")

Use direct operation calls for endpoints that are not exposed by the typed resource objects yet.