Sanitize generated pricing fields
All checks were successful
build / build (push) Successful in 4s

This commit is contained in:
robert
2026-06-02 14:19:13 -03:00
parent c9818bda97
commit 9a90add738
5 changed files with 183 additions and 5 deletions

View File

@@ -32,6 +32,11 @@ never read `A2A_LITELLM_KEY`, `OPENAI_API_KEY`, provider keys, or platform
secrets directly. If `ctx.llm.api_key` is empty, return a clear setup/config
result before constructing `ChatOpenAI`.
`Pricing` only accepts `price_per_call_usd`, `caller_pays_llm`, and `notes`.
Do not put `runtime.pricing.compute`, `runtime.pricing.total_usd`, `compute=`,
or `total_usd=` in generated `agent.py`; the platform derives those values from
declared `Resources` and billing policy.
Keep each `@skill` method `async`, put `RunContext[...]` immediately after
`self`, and annotate every public argument. Do not use `*args` or `**kwargs`;
they are rejected and would not publish a useful schema.