Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
24cea34
Update langchain
elastic-renovate-prod[bot] Sep 10, 2025
cbe4c89
Merge branch 'main' into renovate/main-langchain
elasticmachine Sep 10, 2025
57a982e
fix types
patrykkopycinski Sep 11, 2025
7603bba
fix types
patrykkopycinski Sep 11, 2025
e5f9701
fix yarn.lock
patrykkopycinski Sep 11, 2025
f738bd9
resolve zod
patrykkopycinski Sep 12, 2025
af56329
fix
patrykkopycinski Sep 12, 2025
cf01d0f
test
patrykkopycinski Sep 12, 2025
15b4145
fix
patrykkopycinski Sep 12, 2025
bfa6da3
fix
patrykkopycinski Sep 12, 2025
4356165
test
patrykkopycinski Sep 13, 2025
4a643ae
Merge branch 'main' of github.com:elastic/kibana into renovate/main-l…
patrykkopycinski Oct 8, 2025
614fba9
Merge branch 'main' of github.com:elastic/kibana into renovate/main-l…
patrykkopycinski Oct 8, 2025
1ecb5be
cleanup
patrykkopycinski Oct 8, 2025
a2a2d9e
cleanup
patrykkopycinski Oct 8, 2025
a113dd8
revert openai
patrykkopycinski Oct 8, 2025
82d4f48
fix yarn.lock
patrykkopycinski Oct 8, 2025
a5b4416
update tests
patrykkopycinski Oct 9, 2025
e37581a
cleanup
patrykkopycinski Oct 9, 2025
b87cab0
Merge branch 'main' into renovate/main-langchain
patrykkopycinski Oct 9, 2025
8695be9
Merge branch 'main' into renovate/main-langchain
patrykkopycinski Oct 10, 2025
b24c361
Merge branch 'main' into renovate/main-langchain
patrykkopycinski Oct 10, 2025
1d2fa51
Merge branch 'main' into renovate/main-langchain
patrykkopycinski Oct 10, 2025
518fdd2
cleanup
patrykkopycinski Oct 10, 2025
bfc4fb9
Merge branch 'renovate/main-langchain' of github.com:elastic/kibana i…
patrykkopycinski Oct 10, 2025
d9e4f40
Merge branch 'main' into renovate/main-langchain
patrykkopycinski Oct 10, 2025
8c151c2
Merge branch 'main' into renovate/main-langchain
patrykkopycinski Oct 10, 2025
6d0f594
test
patrykkopycinski Oct 12, 2025
c514530
Merge branch 'renovate/main-langchain' of github.com:elastic/kibana i…
patrykkopycinski Oct 12, 2025
d863c3a
test
patrykkopycinski Oct 12, 2025
26c4c7d
test
patrykkopycinski Oct 12, 2025
62295b9
revert
patrykkopycinski Oct 12, 2025
75285ef
cleanup
patrykkopycinski Oct 12, 2025
f03323e
cleanup
patrykkopycinski Oct 12, 2025
f962227
Merge branch 'main' of github.com:elastic/kibana into renovate/main-l…
patrykkopycinski Oct 22, 2025
7a43891
update tests
patrykkopycinski Oct 22, 2025
7ac8b40
Update langchain
elastic-renovate-prod[bot] Oct 24, 2025
5edfbcf
[CI] Auto-commit changed files from 'node scripts/yarn_deduplicate.js…
kibanamachine Oct 24, 2025
19b8993
bump 1.0.0
patrykkopycinski Oct 24, 2025
72f9209
Merge branch 'renovate/main-langchain' of github.com:elastic/kibana i…
patrykkopycinski Oct 24, 2025
95566e5
test
patrykkopycinski Oct 30, 2025
8341f7e
Merge branch 'main' into renovate/main-langchain
patrykkopycinski Oct 30, 2025
66e991f
deep agent (todo list, filesystem, tasks) in agent builder
KDKHD Dec 11, 2025
4f6e99c
deep agent (todo list, filesystem, tasks) in agent builder
KDKHD Dec 11, 2025
3f4d443
Merge branch 'feature/deep-agent' of github.com:KDKHD/kibana into fea…
KDKHD Dec 11, 2025
9dfc5f5
agent skills
KDKHD Dec 12, 2025
e629dcd
agent skill tools
KDKHD Dec 15, 2025
5f80cfe
Merge branch 'main' of github.com:elastic/kibana into feature/skills-all
patrykkopycinski Dec 15, 2025
537b2b1
WIP
patrykkopycinski Jan 9, 2026
df23c6c
Add internal eval executor
spong Jan 22, 2026
e37b9ce
Merge branch 'main' of github.com:elastic/kibana into kibana-eval-exe…
spong Jan 22, 2026
74ee564
Changes from yarn openapi:bundle
kibanamachine Jan 22, 2026
87edf50
TO FIX: Run node 'scripts/check_pkg_json_semver_ranges && yarn kbn bo…
kibanamachine Jan 22, 2026
734d304
Changes from security: 3rd-party dependencies
kibanamachine Jan 22, 2026
2a3004b
Changes from node scripts/eslint_all_files --no-cache --fix
kibanamachine Jan 22, 2026
a3dc3cc
Improve logging
spong Jan 22, 2026
bfee40a
CI fixes
spong Jan 22, 2026
dbcbeb5
Add tests, cleanup type usage, update readme
spong Jan 23, 2026
204d904
Readme update from PR feedback
spong Jan 23, 2026
9ea4456
Wrap phoenix upsert fix in env var check
spong Jan 23, 2026
c90b003
Merge branch 'main' of github.com:elastic/kibana into kibana-eval-exe…
spong Jan 23, 2026
48e3ef3
Changes from node scripts/eslint_all_files --no-cache --fix
kibanamachine Jan 23, 2026
986486b
Merge branch 'main' of github.com:elastic/kibana into feature/skills-all
patrykkopycinski Jan 27, 2026
6fc412c
Merge branch 'kibana-eval-executor' of github.com:spong/kibana into f…
patrykkopycinski Jan 27, 2026
cbfc889
skills <-> attachments WIP
patrykkopycinski Jan 29, 2026
0bee6e9
skills evals
patrykkopycinski Feb 2, 2026
3b78f2d
evals
patrykkopycinski Feb 2, 2026
0d881aa
evals
patrykkopycinski Feb 2, 2026
2c07ac7
Merge branch 'main' of github.com:elastic/kibana into feature/skills-all
patrykkopycinski Feb 2, 2026
d1b5761
Merge branch 'main' of github.com:elastic/kibana into feature/skills-all
patrykkopycinski Feb 2, 2026
439413c
Merge remote-tracking branch 'upstream/main' into feature/skills-all
patrykkopycinski Feb 12, 2026
ccec535
Migrate prebuilt skills to SkillDefinition type across all plugins
patrykkopycinski Feb 13, 2026
179f3e8
Add skills infrastructure, evals, tracing, and endpoint tooling
patrykkopycinski Feb 23, 2026
8f89921
Merge remote-tracking branch 'upstream/main' into feature/skills-all
patrykkopycinski Feb 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
420 changes: 420 additions & 0 deletions AGENTS.md

Large diffs are not rendered by default.

246 changes: 246 additions & 0 deletions dev_docs/tutorials/agent_builder/configuration.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
---
id: kibDevTutorialAgentBuilderConfiguration
slug: /kibana-dev-docs/tutorials/agent-builder/configuration
title: Agent Builder Configuration Reference
description: Complete reference for Agent Builder configuration options
date: 2026-01-27
tags: ['kibana', 'agent-builder', 'configuration', 'tracing', 'mcp']
---

This guide covers all configuration options for the Agent Builder framework.

## LLM Connector Configuration

Agent Builder supports multiple LLM providers through Kibana's connector system.

### Supported Providers

| Provider | Action Type ID | Description |
|----------|---------------|-------------|
| Azure OpenAI | `.gen-ai` | OpenAI models via Azure |
| OpenAI | `.gen-ai` | Direct OpenAI API |
| AWS Bedrock | `.bedrock` | Claude and other models via AWS |
| Google Gemini | `.gemini` | Gemini models via Vertex AI |
| Inference API | `.inference` | Elastic Inference Service |

### Azure OpenAI Configuration

```yaml
xpack.actions.preconfigured:
azureOpenAI:
actionTypeId: .gen-ai
name: GPT-4o
config:
apiUrl: https://<resource>.openai.azure.com/openai/deployments/<deployment>/chat/completions?api-version=2024-02-01
apiProvider: Azure OpenAI
secrets:
apiKey: <your-api-key>
```

### AWS Bedrock Configuration

```yaml
xpack.actions.preconfigured:
bedrock:
actionTypeId: .bedrock
config:
apiUrl: https://bedrock-runtime.<region>.amazonaws.com
defaultModel: anthropic.claude-3-5-sonnet-20240620-v1:0
name: Claude 3.5 Sonnet
secrets:
accessKey: <aws-access-key>
secret: <aws-secret-key>
```

### Google Gemini Configuration

```yaml
xpack.actions.preconfigured:
gemini:
name: Gemini Pro
actionTypeId: .gemini
config:
apiUrl: https://<region>-aiplatform.googleapis.com
defaultModel: gemini-pro
gcpRegion: <region>
gcpProjectID: <project-id>
secrets:
credentialsJson: '<service-account-credentials-json>'
```

## Tracing Configuration

Agent Builder agents are compatible with Kibana inference tracing for debugging and monitoring.

### Phoenix Tracing (Local Development)

Phoenix is an open-source tool for tracing LLM applications.

#### Start Phoenix Server

```bash
docker run -p 6006:6006 -p 4317:4317 -i -t arizephoenix/phoenix:latest
```

#### Configure Kibana

Add to `config/kibana.dev.yml`:

```yaml
telemetry.enabled: true
telemetry.tracing.enabled: true

telemetry.tracing.exporters.phoenix.base_url: http://localhost:6006/
telemetry.tracing.exporters.phoenix.public_url: http://localhost:6006/
telemetry.tracing.exporters.phoenix.project_name: agent-builder-dev
```

#### Using Environment Variables

Alternatively, set environment variables before starting Kibana:

```bash
export PHOENIX_BASE_URL="http://localhost:6006"
export PHOENIX_PUBLIC_URL="http://localhost:6006"
export PHOENIX_PROJECT_NAME="agent-builder-dev"
```

### Cloud Tracing

For cloud-hosted Phoenix instances:

```yaml
telemetry.enabled: true
telemetry.tracing.enabled: true

telemetry.tracing.exporters.phoenix.base_url: https://<phoenix-host>
telemetry.tracing.exporters.phoenix.public_url: https://<phoenix-host>
telemetry.tracing.exporters.phoenix.project_name: <your-project>
telemetry.tracing.exporters.phoenix.api_key: <your-api-key>
```

## MCP Server Configuration

The MCP (Model Context Protocol) server provides a standardized interface for external MCP clients to access Agent Builder tools.

### Endpoint

The MCP server is available at: `/api/agent_builder/mcp`

### Claude Desktop Integration

Configure Claude Desktop to connect to Agent Builder:

```json
{
"mcpServers": {
"elastic": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:5601/api/agent_builder/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "ApiKey <your-api-key>"
}
}
}
}
```

### Generating API Keys

1. Navigate to **Management > Stack Management > API Keys**
2. Create a new API key with appropriate permissions
3. Use the encoded API key in the `Authorization` header

## A2A Server Configuration

The A2A (Agent-to-Agent) server enables agent-to-agent collaboration following the A2A protocol.

### Agent Cards

Agent cards are exposed at: `GET /api/agent_builder/a2a/{agentId}.json`

### Protocol Endpoint

The A2A protocol endpoint is: `POST /api/agent_builder/a2a/{agentId}`

## Logging Configuration

Enable detailed logging for debugging:

```yaml
logging:
appenders:
custom_console:
type: console
layout:
type: pattern
highlight: true
pattern: "[%date][%level][%logger] %message %meta"
root:
appenders: [custom_console]
level: warn
loggers:
- name: plugins.agentBuilder
level: debug
- name: plugins.agentBuilderPlatform
level: debug
- name: actions
level: debug
- name: tools
level: debug
```

## Feature Flags

Enable experimental features:

```yaml
# Enable default LLM settings UI
feature_flags.overrides.aiAssistant.defaultLlmSettingEnabled: true
```

## Serverless Configuration

Agent Builder has specific configurations for serverless deployments:

### Security Serverless

```yaml
xpack.agentBuilder:
# Agent Builder configuration for security serverless
```

### Observability Serverless

Agent Builder is categorized under observability:

```yaml
agentBuilder.category: observability
```

### Enterprise Search Serverless

```yaml
agentBuilder.category: enterpriseSearch
```

## Security and Permissions

### Feature Privileges

Agent Builder exposes feature privileges:

- `feature_agentBuilder.all` - Full access to Agent Builder
- `feature_agentBuilder.read` - Read-only access

These are automatically included in appropriate roles.

## Related Documentation

- <DocLink id="kibDevTutorialAgentBuilderSetup" text="Setup Guide" />
- <DocLink id="kibDevTutorialAgentBuilderTroubleshooting" text="Troubleshooting Guide" />
58 changes: 58 additions & 0 deletions dev_docs/tutorials/agent_builder/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
id: kibDevTutorialAgentBuilder
slug: /kibana-dev-docs/tutorials/agent-builder
title: Agent Builder Framework
description: Comprehensive documentation for the Agent Builder framework
date: 2026-01-27
tags: ['kibana', 'agent-builder', 'ai', 'tools', 'agents']
---

The **Agent Builder** framework provides APIs to create and interact with AI agents, tools, and attachments in Kibana. It enables developers to build intelligent assistants that can perform complex tasks using various tool types.

## Overview

The Agent Builder plugin exposes APIs to interact with primitives including:

- **Tools**: Agent-friendly functions with metadata for AI understanding
- **Agents**: Built-in or user-defined AI agents with specific capabilities
- **Attachments**: Context providers for agent conversations
- **MCP Server**: Standardized interface for external MCP clients
- **A2A Server**: Agent-to-Agent communication protocol

## Packages

The framework is organized into four main packages:

| Package | Description |
|---------|-------------|
| `@kbn/agent-builder-common` | Types and utilities shared between browser and server |
| `@kbn/agent-builder-server` | Server-specific types and utilities |
| `@kbn/agent-builder-browser` | Browser-specific types and utilities |
| `@kbn/agent-builder-genai-utils` | Server-side utilities for built-in tools and agents |

## Tool Types

Agent Builder supports multiple tool types:

| Type | Description |
|------|-------------|
| `builtin` | Code tools that execute arbitrary functions (platform only) |
| `esql` | Tools defined by templated ES\|QL queries |
| `index_search` | Agentic search tools scoped to index patterns |
| `workflow` | Tools that execute workflows |
| `mcp` | Tools provided by external MCP servers |

## Quick Links

<DocLink id="kibDevTutorialAgentBuilderSetup" text="Setup Guide" /> - Get started with local development

<DocLink id="kibDevTutorialAgentBuilderConfiguration" text="Configuration Reference" /> - Configure LLM connectors, tracing, and MCP servers

<DocLink id="kibDevTutorialAgentBuilderTroubleshooting" text="Troubleshooting" /> - Solve common issues

<DocLink id="kibDevTutorialAgentBuilderUsageExamples" text="Usage Examples" /> - Code examples for tools, agents, and attachments

## Related Resources

- [Agent Builder README](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/agent_builder/README.md)
- [Contributor Guide](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/agent_builder/CONTRIBUTOR_GUIDE.md)
Loading