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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewai_valta-0.1.1.tar.gz.
File metadata
- Download URL: crewai_valta-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8e068a1ec3a35f2796ea9d2b9e27bf6c7e9e905f3647c3cf1ab662b2bc85337
|
|
| MD5 |
cf5625f0071fa62809c03a98c6d2aba0
|
|
| BLAKE2b-256 |
f7efe549a5d475861414add0535a077a71a8ade6d5fd6ab5a154f7ec85f4aae5
|
File details
Details for the file crewai_valta-0.1.1-py3-none-any.whl.
File metadata
- Download URL: crewai_valta-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1f3558a5761ef59d337cc09dae938801b6d652ca96ce607f41f30d67107f859
|
|
| MD5 |
621595e8e4e1bff45a64ba54a6f20bdb
|
|
| BLAKE2b-256 |
4be7736bdb8ea13dc054267b83894684320368461bc3c4b1dce50131e8f7305e
|