-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Agent Builder] APM error AI insights #243734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Agent Builder] APM error AI insights #243734
Conversation
.../public/components/app/error_group_details/error_sampler/error_sample_contextual_insight.tsx
Outdated
Show resolved
Hide resolved
x-pack/solutions/observability/packages/ai-agent/contextual_insight/robot_icon.tsx
Show resolved
Hide resolved
...omponents/app/error_group_details/error_sampler/error_sample_ai_agent_contextual_insight.tsx
Outdated
Show resolved
Hide resolved
...omponents/app/error_group_details/error_sampler/error_sample_ai_agent_contextual_insight.tsx
Outdated
Show resolved
Hide resolved
x-pack/solutions/observability/plugins/apm/server/routes/ai_agent/route.ts
Outdated
Show resolved
Hide resolved
|
|
||
| const response = await inferenceClient.chatComplete({ | ||
| connectorId, | ||
| messages: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about a system message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add that today. System prompt and refining the instructions are still pending.
...ility/plugins/apm/server/routes/agent_builder/ai_insights/explain_error/get_error_context.ts
Outdated
Show resolved
Hide resolved
...c/components/app/error_group_details/error_sampler/error_sample_agent_builder_ai_insight.tsx
Outdated
Show resolved
Hide resolved
x-pack/solutions/observability/plugins/observability_agent/server/attachments/error.ts
Outdated
Show resolved
Hide resolved
x-pack/solutions/observability/plugins/observability_agent/server/attachments/error.ts
Outdated
Show resolved
Hide resolved
x-pack/solutions/observability/plugins/observability_agent/server/attachments/error.ts
Outdated
Show resolved
Hide resolved
x-pack/solutions/observability/plugins/apm/common/agent_builder/agent_id.ts
Outdated
Show resolved
Hide resolved
...c/components/app/error_group_details/error_sampler/error_sample_agent_builder_ai_insight.tsx
Outdated
Show resolved
Hide resolved
| const [summary, setSummary] = useState(''); | ||
| const [context, setContext] = useState(''); | ||
|
|
||
| const [lastUsedConnectorId] = useLocalStorage('agentBuilder.lastUsedConnector', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use this hook exposed by AB?
Line 20 in 2d666ca
| export function useConnectorSelection(): UseConnectorSelectionResult { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way we do not duplicate the locale storage key
…bility_agent plugin
|
Pinging @elastic/obs-ai-team (Team:obs-ai) |
|
Pinging @elastic/obs-presentation-team (Team:obs-presentation) |
💔 Build Failed
Failed CI StepsHistory
cc @viduni94 |
Closes https://github.com/elastic/obs-ai-assistant-team/issues/413
Summary
This PR handles APM error AI insights via Agent Builder. This is done by consuming the common
AI_INSIGHTattachment and introducing an "error" attachment.UI for AI insights
This PR consumes the common UI component in the
observability-agent-builderpackage.Testing
Observability test clusters were used for testing.
Testing instructions
Screen recording
Screen.Recording.2025-12-03.at.8.12.22.PM.mov
Checklist
release_note:*label is applied per the guidelinesbackport:*labels.