Skip to main content

AgentOps SDK for teams shipping AI agents

Project description

Run Centra SDK

AgentOps for teams shipping AI agents. Instrument your Python agent in minutes and inspect every run, tool call, model call, cost, and error in the Run Centra dashboard.

Install

pip install runcentra

Quick start

from runcentra import Agent, tool, RunContext

@tool(name="say_hello", scopes=["io.write"], risk_level="read_only")
def say_hello(ctx: RunContext, name: str) -> str:
    return f"Hello, {name}!"

agent = Agent(
    id="hello-agent",
    name="Hello Agent",
    version="0.1.0",
    model="gpt-4.1-mini",
    tools=[say_hello],
)

@agent.task
def run(ctx: RunContext, input: dict) -> dict:
    greeting = say_hello(ctx, input["name"])
    return {"greeting": greeting}

if __name__ == "__main__":
    agent.run({"name": "world"})

Docs

https://docs.runcentra.com

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

runcentra-0.1.0.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

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

runcentra-0.1.0-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: runcentra-0.1.0.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for runcentra-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9aba6976878480b5d1ec4f993ced13f96d04f35cbed6c35c9bcd9a28048fec26
MD5 d179826b444cdc56f63921ee653c0e6b
BLAKE2b-256 98e940f23b8c15497d04842e473e1c56d0dbc1a35d0c8e9920f80e3422deb4c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for runcentra-0.1.0.tar.gz:

Publisher: publish-sdk.yml on bkalyankumar/runcentra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: runcentra-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for runcentra-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f74c9171f62a1ed73ccf77471168d47215f22a0f1c9638a76d85164bf9b3b10
MD5 ff0381274adbc21598c2395ea045554b
BLAKE2b-256 a85fef4ef5498c8a9917b511f0841148f88f265d155c7e856651ec8125dfc7c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for runcentra-0.1.0-py3-none-any.whl:

Publisher: publish-sdk.yml on bkalyankumar/runcentra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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