feat: let builder use caller or platform llm
All checks were successful
build / build (push) Successful in 23s
All checks were successful
build / build (push) Successful in 23s
This commit is contained in:
@@ -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`;
|
||||
|
||||
@@ -31,7 +31,8 @@ Check these items:
|
||||
- The public schema is small and stable. No unbounded command strings, hidden
|
||||
prompt fragments, or provider credentials as public inputs.
|
||||
- The implementation reads `ctx.llm` for both `CALLER_PROVIDED` and
|
||||
`PLATFORM` LLM provisioning.
|
||||
`PLATFORM` LLM provisioning. `PLATFORM_OR_CALLER_PROVIDED` is acceptable
|
||||
only for trusted platform/meta agents and must also read `ctx.llm`.
|
||||
- Generated/user agents should default to
|
||||
`llm_provisioning = LLMProvisioning.CALLER_PROVIDED` and
|
||||
`Pricing(..., caller_pays_llm=True, ...)`. If the user explicitly wants
|
||||
|
||||
Reference in New Issue
Block a user