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 an agent directly
agent = client.agents.create(
    name="Invoice Validator — GST Specialist",
    agent_type="invoice_validator_gst",
    domain="finance",
    llm_model="claude-3-5-sonnet-20241022",
    confidence_floor=0.90,
    hitl_condition="total > 500000 OR einvoice_failed==true",
    authorized_tools=[
        "oracle_fusion:read:purchase_order",
        "gstn_api:read:validate_gstin",
    ],
    initial_status="shadow",
)
print(agent["agent_id"])     # new agent UUID
print(agent["status"])       # "shadow"

# 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.2.0.tar.gz (7.5 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.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agenticorg-0.2.0.tar.gz
Algorithm Hash digest
SHA256 97433355edb302da90be7ab0c0e89ad0a5a14f0ef4af8fedaf94476cb511b7da
MD5 3c2343639d38a00feb291838dd78fa83
BLAKE2b-256 8f9c65f0eb2e2b3bbb9ab463afbf20ca2d08dabf825667d10b9dabda1eb83b35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agenticorg-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1964456ffb450c33a97c12284eae4b91f472534665dd49a8b09888d32adf211
MD5 73db3f0d41ea9996990c4f3157efcee7
BLAKE2b-256 4f564d02183571ef4d34d0c972907fdb37462020d350c43c179a97b263386c34

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