Spaces method and path for this operation:
Refer to Spaces for more information.
Update an existing agent configuration. Use this endpoint to modify any aspect of the agent's behavior, appearance, or capabilities. To learn more, refer to the agents documentation.
[Required authorization] Route required privileges: agentBuilder:manageAgents.
Body
-
Updated hex color code for the agent avatar.
-
Updated symbol/initials for the agent avatar.
-
Updated configuration settings for the agent.
Additional properties are NOT allowed.
-
Updated description of what the agent does.
-
Updated labels for categorizing and organizing agents.
-
Updated display name for the agent.
-
Technical Preview; added in 9.4.0. Updated visibility setting:
public(any privileged user can read/write),shared(any privileged user can read, only owner can write),private(only owner can read/write).Values are
public,shared, orprivate.
curl \
-X PUT "${KIBANA_URL}/api/agent_builder/agents/{id}" \
-H "Authorization: ApiKey ${API_KEY}" \
-H "kbn-xsrf: true" \
-H "Content-Type: application/json" \
-d '{
"name": "Search Index Helper",
"description": "Updated description - Search for anything in \"content-*\" indices!",
"labels": ["custom-indices", "department-search", "elastic-employees"],
"avatar_color": "#BFDBFF",
"avatar_symbol": "SI",
"configuration": {
"instructions": "You are a custom agent that wants to help searching data using all indices starting with prefix \"content-\".",
"tools": [{
"tool_ids": [
"platform.core.search",
"platform.core.list_indices",
"platform.core.get_index_mapping",
"platform.core.get_document_by_id"
]
}]
}
}'
PUT kbn://api/agent_builder/agents/{id}
{
"name": "Search Index Helper",
"description": "Updated description - Search for anything in \"content-*\" indices!",
"labels": ["custom-indices", "department-search", "elastic-employees"],
"avatar_color": "#BFDBFF",
"avatar_symbol": "SI",
"configuration": {
"instructions": "You are a custom agent that wants to help searching data using all indices starting with prefix \"content-\".",
"tools": [{
"tool_ids": [
"platform.core.search",
"platform.core.list_indices",
"platform.core.get_index_mapping",
"platform.core.get_document_by_id"
]
}]
}
}
{
"id": "created-agent-id",
"name": "Search Index Helper",
"labels": [
"custom-indices",
"department-search",
"elastic-employees"
],
"description": "Updated description - Search for anything in \"content-*\" indices!",
"avatar_color": "#BFDBFF",
"avatar_symbol": "SI",
"configuration": {
"tools": [
{
"tool_ids": [
"platform.core.search",
"platform.core.list_indices",
"platform.core.get_index_mapping",
"platform.core.get_document_by_id"
]
}
],
"instructions": "You are a custom agent that wants to help searching data using all indices starting with prefix \"content-\"."
}
}
{
"id": "created-agent-id",
"name": "Search Index Helper",
"type": "chat",
"labels": [
"custom-indices",
"department-search",
"elastic-employees"
],
"description": "Updated description - Search for anything in \"content-*\" indices!",
"avatar_color": "#BFDBFF",
"avatar_symbol": "SI",
"configuration": {
"tools": [
{
"tool_ids": [
"platform.core.search",
"platform.core.list_indices",
"platform.core.get_index_mapping",
"platform.core.get_document_by_id"
]
}
],
"instructions": "You are a custom agent that wants to help searching data using all indices starting with prefix \"content-\"."
}
}