Require user LLM credentials

This commit is contained in:
2026-06-06 12:22:19 -03:00
parent 5d4f021986
commit 17a6fe918f

View File

@@ -54,8 +54,8 @@ class TasksApi(A2AAgent):
llm_provisioning = LLMProvisioning.PLATFORM llm_provisioning = LLMProvisioning.PLATFORM
pricing = Pricing( pricing = Pricing(
price_per_call_usd=0.0, price_per_call_usd=0.0,
caller_pays_llm=False, caller_pays_llm=True,
notes="Uses a scoped platform LLM grant through ctx.llm.", notes="Uses the caller's saved LLM credential through ctx.llm.",
) )
resources = Resources(cpu="200m", memory="512Mi") resources = Resources(cpu="200m", memory="512Mi")
egress = EgressPolicy( egress = EgressPolicy(
@@ -85,8 +85,8 @@ class TasksApi(A2AAgent):
return { return {
"error": "llm_credentials_missing", "error": "llm_credentials_missing",
"final": ( "final": (
"LLM credentials were not available for this run. Hosted " "LLM key required. Add an LLM credential in Settings > "
"generated OpenAPI agents should receive a platform LLM grant." "LLM credentials before running this agent."
), ),
"messages": [], "messages": [],
} }