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,12 +24,16 @@ class BuilderPromptTests(unittest.TestCase):
)
self.assertIn("stream=True", agent_source)
def test_outer_builder_uses_platform_llm_grants(self) -> None:
def test_outer_builder_accepts_user_creds_or_platform_llm_grants(self) -> None:
agent_source = Path(__file__).resolve().parents[1].joinpath("agent.py").read_text()
self.assertIn("llm_provisioning = LLMProvisioning.PLATFORM", agent_source)
self.assertIn(
"llm_provisioning = LLMProvisioning.PLATFORM_OR_CALLER_PROVIDED",
agent_source,
)
self.assertIn("caller_pays_llm=False", agent_source)
self.assertIn("platform-scoped LiteLLM grant", agent_source)
self.assertIn("caller-selected LLM credentials", agent_source)
def test_builder_defaults_raise_timeout_budget(self) -> None:
config_source = Path(__file__).resolve().parents[1].joinpath(