-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
component:sdkSDK componentSDK componenteffort:lLarge effort (1-2 weeks)Large effort (1-2 weeks)focus:cost-guardrail90-day cost guardrail focus90-day cost guardrail focusgate:8-closeGate 8: Close loop + v1.2.0 (blocked by Gate 6+7)Gate 8: Close loop + v1.2.0 (blocked by Gate 6+7)priority:mediumMedium priorityMedium prioritytype:featureNew featureNew feature
Description
Context
Close the loop: users configure budgets in dashboard (T10), SDK picks them up automatically.
Acceptance Criteria
-
BudgetGuard.from_remote(api_key="ag_...", budget_name="production")class method - Fetches config from
GET /api/v1/budgets?name=productionusing urllib (zero deps) - Falls back to provided local defaults if network fails
- Caches config for 5 minutes (avoid per-call HTTP)
- Thread-safe (multiple agents sharing one guard)
- Test with mock server
Key Files
sdk/agentguard/guards.py— BudgetGuard class
Week: 10-11 | Depends on: T10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component:sdkSDK componentSDK componenteffort:lLarge effort (1-2 weeks)Large effort (1-2 weeks)focus:cost-guardrail90-day cost guardrail focus90-day cost guardrail focusgate:8-closeGate 8: Close loop + v1.2.0 (blocked by Gate 6+7)Gate 8: Close loop + v1.2.0 (blocked by Gate 6+7)priority:mediumMedium priorityMedium prioritytype:featureNew featureNew feature
Projects
Status
No status