Skip to main content

CrewAI tool for hard spending limits on AI agents via Valta

Project description

crewai-valta

Hard spending limits for CrewAI agents. Enforces budget policies before any paid operation fires.

Install

pip install crewai-valta

Quickstart

from crewai_valta import ValtaSpendTool
from crewai import Agent, Task, Crew

guard = ValtaSpendTool(
    api_key="vk_live_...",   # from valta.co/dashboard/api-keys
    agent_id="research-agent",
)

researcher = Agent(
    role="Research Analyst",
    goal="Find and summarise market data",
    backstory="...",
    tools=[guard, ...your_other_tools],
)

Add this to your task description:

"Before calling any paid API, use the check_spend tool with the estimated cost. Only proceed if the result is 'approved'."

How it works

Response Meaning
approved Within policy — proceed
denied: daily_limit_exceeded Would exceed daily budget
denied: insufficient_balance Wallet balance too low
denied: requires human approval Above approval threshold

Links

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

crewai_valta-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

crewai_valta-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for crewai_valta-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d361c5a45aaa8bf978496526bd2e69ace41f08bfc83687bbc5742f81858a07b2
MD5 1b3edad0b5505882d17c5b27306517df
BLAKE2b-256 a3e42f58225205de95e3cecdcbfadc6e22cc6f53b51f012fb97781a637b7c596

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for crewai_valta-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a58ec502fc40bff991dcae9c28b283fb660a45bad6a33f9a419fef619412149c
MD5 a4201e6d263db7acd8b876dc65628034
BLAKE2b-256 b6902e215e9e132e0bbc0657a5ad44e0a4b4f4ff84bb0b561f37906005afdeed

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