This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -39,6 +39,9 @@ Check these items:
|
||||
`LLMProvisioning.CALLER_PROVIDED` only when the user explicitly wants BYOK or
|
||||
caller-paid inference. In both modes, the code must use `ctx.llm` and never
|
||||
read LiteLLM/provider keys directly.
|
||||
- `Pricing` contains only `price_per_call_usd`, `caller_pays_llm`, and `notes`.
|
||||
Reject `runtime.pricing.compute`, `runtime.pricing.total_usd`, `compute=`, or
|
||||
`total_usd=` in `agent.py`; those are derived platform fields.
|
||||
- Any code path that builds `ChatOpenAI` checks `ctx.llm.api_key` first or
|
||||
returns a clear setup/config result before the model constructor runs.
|
||||
- Any use of DeepAgents file tools passes `backend=ctx.workspace_backend()`.
|
||||
|
||||
Reference in New Issue
Block a user