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
fix(ui/agents): make A2A skill tags enterable and validated (#29512)
ryan-crabbe-berrid991c47018aa
diff --git a/ui/litellm-dashboard/src/components/agents/add_agent_form.tsx b/ui/litellm-dashboard/src/components/agents/add_agent_form.tsxindex 3929a9e1832..eee19171fb6 100644--- a/ui/litellm-dashboard/src/components/agents/add_agent_form.tsx+++ b/ui/litellm-dashboard/src/components/agents/add_agent_form.tsx@@ -197,7 +197,7 @@ const AddAgentForm: React.FC<AddAgentFormProps> = ({const handleNext = async () => {try {if (currentStep === 0) {- await form.validateFields(["agent_name"]);+ await form.validateFields();const agentName = form.getFieldValue("agent_name");if (agentName && !newKeyName) {setNewKeyName(`${agentName}-key`);diff --git a/ui/litellm-dashboard/src/components/agents/agent_config.ts b/ui/litellm-dashboard/src/components/agents/agent_config.tsindex e87b191b19c..14b6729bf93 100644--- a/ui/litellm-dashboard/src/components/agents/agent_config.ts+++ b/ui/litellm-dashboard/src/components/agents/agent_config.ts@@ -212,14 +212,14 @@ export const SKILL_FIELD_CONFIG = {},tags: {name: "tags",- label: "Tags (comma-separated)",+ label: "Tags",required: true,- placeholder: "e.g., hello world, greeting",+ placeholder: "Type a tag and press Enter",},examples: {name: "examples",- label: "Examples (comma-separated)",- placeholder: "e.g., hi, hello world",+ label: "Examples",+ placeholder: "Type an example and press Enter",},};diff --git a/ui/litellm-dashboard/src/components/agents/agent_form_fields.tsx b/ui/litellm-dashboard/src/components/agents/agent_form_fields.tsxindex 42e55b8c56f..27b93838ce6 100644--- a/ui/litellm-dashboard/src/components/agents/agent_form_fields.tsx+++ b/ui/litellm-dashboard/src/components/agents/agent_form_fields.tsx@@ -56,7 +56,7 @@ const AgentFormFields: React.FC<AgentFormFieldsProps> = ({ showAgentName = true,{/* Skills */}{shouldShow(AGENT_FORM_CONFIG.skills.key) && (- <Panel header={`${AGENT_FORM_CONFIG.skills.title} (Required)`} key={AGENT_FORM_CONFIG.skills.key}>+ <Panel header={`${AGENT_FORM_CONFIG.skills.title}`} key={AGENT_FORM_CONFIG.skills.key}><Form.List name="skills">{(fields, { add, remove }) => (<>@@ -94,20 +94,26 @@ const AgentFormFields: React.FC<AgentFormFieldsProps> = ({ showAgentName = true,label={SKILL_FIELD_CONFIG.tags.label}name={[field.name, 'tags']}rules={[{ required: SKILL_FIELD_CONFIG.tags.required, message: 'Required' }]}- getValueFromEvent={(e) => e.target.value.split(',').map((s: string) => s.trim())}- getValueProps={(value) => ({ value: Array.isArray(value) ? value.join(', ') : value })}>- <Input placeholder={SKILL_FIELD_CONFIG.tags.placeholder} />+ <Select+ mode="tags"+ style={{ width: '100%' }}+ tokenSeparators={[',']}+ placeholder={SKILL_FIELD_CONFIG.tags.placeholder}+ /></Form.Item><Form.Item{...field}label={SKILL_FIELD_CONFIG.examples.label}name={[field.name, 'examples']}- getValueFromEvent={(e) => e.target.value.split(',').map((s: string) => s.trim()).filter((s: string) => s)}- getValueProps={(value) => ({ value: Array.isArray(value) ? value.join(', ') : '' })}>- <Input placeholder={SKILL_FIELD_CONFIG.examples.placeholder} />+ <Select+ mode="tags"+ style={{ width: '100%' }}+ tokenSeparators={[',']}+ placeholder={SKILL_FIELD_CONFIG.examples.placeholder}+ /></Form.Item><AntButton