feat: let builder use caller or platform llm
All checks were successful
build / build (push) Successful in 23s

This commit is contained in:
robert
2026-05-26 10:52:09 -03:00
parent b9e63112d5
commit 7829e5c71e
8 changed files with 31 additions and 17 deletions

View File

@@ -24,8 +24,10 @@ Use `A2AAgent` class attributes for runtime and marketplace behavior:
For generated/user-owned agents that call an LLM, default to
`LLMProvisioning.CALLER_PROVIDED` with `Pricing(..., caller_pays_llm=True, ...)`.
Use `LLMProvisioning.PLATFORM` only when the user explicitly wants
platform-paid LLM usage. In either mode, read `ctx.llm`; never read
`A2A_LITELLM_KEY`, provider keys, or platform secrets directly.
platform-paid LLM usage. Reserve `LLMProvisioning.PLATFORM_OR_CALLER_PROVIDED`
for trusted platform/meta agents that must work with either the caller's
selected creds or a platform fallback grant. In every mode, read `ctx.llm`;
never read `A2A_LITELLM_KEY`, provider keys, or platform secrets directly.
Keep each `@skill` method `async`, put `RunContext[...]` immediately after
`self`, and annotate every public argument. Do not use `*args` or `**kwargs`;