Handle deterministic agents without LLM creds
All checks were successful
build / build (push) Successful in 11s
All checks were successful
build / build (push) Successful in 11s
This commit is contained in:
@@ -31,6 +31,12 @@ 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 a model or calling `create_a2a_deep_agent`.
|
||||
|
||||
For explicitly deterministic/local-logic agents that do not call an LLM, omit
|
||||
the concrete class `llm_provisioning` declaration, remove unused
|
||||
`LLMProvisioning` imports, do not read `ctx.llm`, and set
|
||||
`Pricing(..., caller_pays_llm=False, ...)`. A no-LLM agent must be callable
|
||||
without requiring the user's LLM credential.
|
||||
|
||||
`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
|
||||
|
||||
Reference in New Issue
Block a user