The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
chore: merge litellm_internal_staging into litellm_agent365_mcp_guardrail
yuchengc23ae322c189
diff --cc litellm/types/guardrails.pyindex a9235bb57e7,69cb88bfa2f..9a6c62808ee--- a/litellm/types/guardrails.py+++ b/litellm/types/guardrails.py@@@ -140,7 -137,7 +140,8 @@@ class SupportedGuardrailIntegrations(EnCOMPRESR = "compresr"STRAIKER = "straiker"ALICE = "alice"+ AGENT_365 = "agent_365"+ CONDUCT = "conduct"class Role(Enum):diff --cc ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_configs.tsindex a7e845ed444,d0afc896260..10ca58294b9--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_configs.ts+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_configs.ts@@@ -318,11 -318,10 +318,17 @@@ export const GUARDRAIL_PRESETS: Record<mode: "pre_call",defaultOn: false,},+ agent_365: {+ provider: "Agent365",+ guardrailNameSuggestion: "Microsoft Agent 365 Guardrail",+ mode: "pre_mcp_call",+ // MCP-only: default_on is the only activation path on the MCP hook+ defaultOn: true,+ },+ conduct: {+ provider: "Conduct",+ guardrailNameSuggestion: "Conduct Guard",+ mode: "pre_call",+ defaultOn: false,+ },};diff --cc ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.test.tsindex fdcf44e2132,9a9ab3a61d7..eb5d47d7891--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.test.ts+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.test.ts@@@ -28,7 -28,7 +28,8 @@@ const EXPECTED_PARTNER_LOGO_FILES: Recorepelloai: "repelloai.png",straiker: "straiker.svg",alice: "alice.svg",+ agent_365: "microsoft_azure.svg",+ conduct: "conduct.png",};describe("guardrail_garden_data logos", () => {diff --cc ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.tsindex 15615b03c09,165bd8f9967..d88a333d6f1--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.ts+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_garden_data.ts@@@ -474,16 -474,16 +474,26 @@@ export const PARTNER_GUARDRAIL_CARDS: Gtags: ["Content Moderation", "Prompt Injection", "PII", "Policy"],providerKey: "Alice",},+ {+ id: "agent_365",+ name: "Microsoft Agent 365",+ description:+ "Microsoft Agent 365 tool-call governance: Defender threat evaluation and observability for MCP tool calls, acting on behalf of the signed-in user",+ category: "partner",+ logo: guardrailLogoMap["Microsoft Agent 365"],+ tags: ["Agentic", "MCP", "Tool Misuse", "Observability"],+ providerKey: "Agent365",+ },+ {+ id: "conduct",+ name: "Conduct Guard",+ description:+ "Conduct Guard evaluates prompts against workspace rules before the model call: prompt injection, PII, and custom policies, with block, warning, and approval verdicts.",+ category: "partner",+ logo: guardrailLogoMap["Conduct Guard"],+ tags: ["Security", "Prompt Injection", "PII", "Policy"],+ providerKey: "Conduct",+ },];export const ALL_CARDS = [...LITELLM_CONTENT_FILTER_CARDS, ...PARTNER_GUARDRAIL_CARDS];diff --cc ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info_helpers.tsxindex 3b6cb8a42d5,fb3cf8f309a..476bcd3a8ae--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info_helpers.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info_helpers.tsx@@@ -208,7 -210,7 +210,8 @@@ export const guardrailLogoMap ="RepelloAI Argus": repelloAiLogo.src,Straiker: straikerLogo.src,Alice: aliceLogo.src,+ "Microsoft Agent 365": microsoftAzureLogo.src,+ "Conduct Guard": conductLogo.src,} satisfies Record<string, string>;export const getGuardrailLogo = (displayName: string): string | undefined =>