Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export interface EsqlToolParam {
* Description of the parameter's purpose or expected values.
*/
description: string;
/**
* Whether the parameter is optional.
*/
optional?: boolean;
}

// To make compatible with ToolDefinition['configuration']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const AgentSettingsTab: React.FC<AgentSettingsTabProps> = ({
})}
labelAppend={
<EuiText size="xs" color="subdued">
{labels.agents.settings.optionalLabel}
{labels.common.optional}
</EuiText>
}
isInvalid={!!formState.errors.configuration?.instructions}
Expand Down Expand Up @@ -212,7 +212,7 @@ export const AgentSettingsTab: React.FC<AgentSettingsTabProps> = ({
})}
labelAppend={
<EuiText size="xs" color="subdued">
{labels.agents.settings.optionalLabel}
{labels.common.optional}
</EuiText>
}
isInvalid={!!formState.errors.labels}
Expand Down Expand Up @@ -379,7 +379,7 @@ export const AgentSettingsTab: React.FC<AgentSettingsTabProps> = ({
})}
labelAppend={
<EuiText size="xs" color="subdued">
{labels.agents.settings.optionalLabel}
{labels.common.optional}
</EuiText>
}
isInvalid={!!formState.errors.avatar_color}
Expand Down Expand Up @@ -409,7 +409,7 @@ export const AgentSettingsTab: React.FC<AgentSettingsTabProps> = ({
})}
labelAppend={
<EuiText size="xs" color="subdued">
{labels.agents.settings.optionalLabel}
{labels.common.optional}
</EuiText>
}
isInvalid={!!formState.errors.avatar_symbol}
Expand Down
Loading