Skip to main content

Python SDK for AgenticOrg — run AI agents, create from SOP, manage connectors

Project description

AgenticOrg Python SDK

Run AI agents, create agents from SOPs, and manage connectors — all from Python or the terminal.

Install

pip install agenticorg

Quickstart (Python)

from agenticorg import AgenticOrg

client = AgenticOrg(api_key="your-key")

# List agents
agents = client.agents.list(domain="finance")

# Run an agent
result = client.agents.run("ap_processor", inputs={
    "invoice_id": "INV-001",
    "vendor_id": "V-100",
})
print(result["status"])      # "completed"
print(result["confidence"])  # 0.95
print(result["output"])      # {...structured result...}

# Create agent from SOP
draft = client.sop.parse_text("""
Step 1: Receive invoice from vendor
Step 2: Validate GSTIN on GST portal
Step 3: 3-way match with PO and GRN
Step 4: If amount > 5L, escalate to CFO
Step 5: Post journal entry
""", domain_hint="finance")

# Review and deploy
agent = client.sop.deploy(draft["config"])
print(agent["agent_id"])  # deployed as shadow agent

Quickstart (CLI)

# Set your API key
export AGENTICORG_API_KEY=your-key

# List agents
agenticorg agents list
agenticorg agents list --domain finance

# Run an agent
agenticorg agents run ap_processor --input '{"invoice_id": "INV-001"}'

# Parse SOP and create agent
agenticorg sop parse --file invoice_sop.pdf --domain finance

# View A2A agent card
agenticorg a2a card

# List MCP tools (for ChatGPT/Claude)
agenticorg mcp tools

Authentication

Three options:

  1. API Key (dashboard users): AgenticOrg(api_key="your-key")
  2. Grantex Grant Token (external agents): AgenticOrg(grantex_token="eyJ...")
  3. Environment variable: AGENTICORG_API_KEY or AGENTICORG_GRANTEX_TOKEN

Resources

Resource Methods
client.agents list(), get(id), run(type, inputs=...), create(...)
client.connectors list(), get(id)
client.sop parse_text(text), upload(file), deploy(config)
client.a2a agent_card(), agents()
client.mcp tools(), call(name, args)

License

Apache-2.0

Project details


Download files

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

Source Distribution

agenticorg-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

agenticorg-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file agenticorg-0.1.0.tar.gz.

File metadata

  • Download URL: agenticorg-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for agenticorg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40fc5479c1c0e13ed9cc484c6441c52a2ede66084d177347a1f3feba83c766ca
MD5 c078c522ab57c5d340420b9e6046efea
BLAKE2b-256 e1c88af67fb51d06c657e8c122e44d0f1496467c6277f74f4632f18ac707ce31

See more details on using hashes here.

File details

Details for the file agenticorg-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agenticorg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for agenticorg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95b01bdad625518107bb96a9c5add79e160e12334e31b27c7ca1b30d8ef289fe
MD5 d071e59f96d07a470f1521d245c02415
BLAKE2b-256 b70d1bfa0d79dd77acd7f36c3be543c33a8952e663ffd5ab4d3c0d7fcab8f4cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page