This commit is contained in:
Sudhi Seshachala 2026-11-04 05:58:34 +00:00 • committed by GitHub
commit 0b08744dd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -16,7 +16,10 @@ class ConductGuardrailConfigModelOptionalParams(LiteLLMBaseModel):
)
tool_name: str | None = Field(
default="llm_call",
description="Conduct tool name the prompt is evaluated under. Match the tool your rules target.",
description=(
"Accepted for backward compatibility and ignored. "
"Prompts are evaluated against the workspace's prompt rules."
),
)
timeout: float | None = Field(
default=8.0,
@ -35,7 +38,7 @@ class ConductGuardrailConfigModel(GuardrailConfigModel[ConductGuardrailConfigMod
description="Conduct agent token. Env: CONDUCT_AGENT_TOKEN.",
)
api_base: str | None = Field(
default="https://api.conductai.ai",
default="https://gateway.conductai.ai",
description="Conduct API base URL. The MCP endpoint is derived as <api_base>/mcp.",
)

View file

@ -193,7 +193,7 @@ async def test_ui_offers_conduct_fields_without_the_package() -> None:
assert fields["ui_friendly_name"] == "Conduct Guard"
assert fields["api_key"]["required"] is True
assert fields["api_base"]["default_value"] == "https://api.conductai.ai"
assert fields["api_base"]["default_value"] == "https://gateway.conductai.ai"
optional: Final = fields["optional_params"]["fields"]
assert set(optional) == {"workspace_id", "tool_name", "timeout", "unreachable_fallback"}
assert optional["unreachable_fallback"]["type"] == "select"