Skip to content

[Agent Builder] Expose read-only conversations on plugin start contract#260435

Merged
flash1293 merged 3 commits intoelastic:mainfrom
flash1293:flash1293/read-conversations
Mar 31, 2026
Merged

[Agent Builder] Expose read-only conversations on plugin start contract#260435
flash1293 merged 3 commits intoelastic:mainfrom
flash1293:flash1293/read-conversations

Conversation

@flash1293
Copy link
Copy Markdown
Contributor

Summary

  • Adds conversations property to AgentBuilderPluginStart so other plugins can read conversations programmatically without going through the REST API
  • Exposes a getScopedClient({ request }) factory returning a ReadOnlyConversationClient with only get and list methods (no create/update/delete)
  • Follows the same pattern as agents.getRegistry, tools.getRegistry, etc.

Test plan

  • Type check passes (node scripts/type_check --project x-pack/platform/plugins/shared/agent_builder/tsconfig.json)
  • All 1989 existing jest tests pass
  • Consumer plugin can import ConversationsStart and ReadOnlyConversationClient types

🤖 Generated with Claude Code

flash1293 and others added 2 commits March 31, 2026 12:23
Allow other plugins to read conversations programmatically via
AgentBuilderPluginStart.conversations.getScopedClient({ request }),
returning a ReadOnlyConversationClient with get and list methods.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Verifies that the public conversations contract delegates get/list
to the internal client and does not expose mutating methods.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@flash1293 flash1293 added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v9.4.0 labels Mar 31, 2026
@flash1293 flash1293 marked this pull request as ready for review March 31, 2026 11:00
@flash1293 flash1293 requested a review from a team as a code owner March 31, 2026 11:00
@flash1293 flash1293 enabled auto-merge (squash) March 31, 2026 12:02
@flash1293 flash1293 merged commit 65f624f into elastic:main Mar 31, 2026
15 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Scout: [ platform / navigation ] plugin / local-serverless-security_complete - navigation - has security serverless side nav

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
agentBuilder 35 41 +6
Unknown metric groups

API count

id before after diff
agentBuilder 97 109 +12

mbondyra added a commit to mbondyra/kibana that referenced this pull request Mar 31, 2026
…hanges

* commit 'd0e62a657916e84694a93983e513ce9e34e0b635': (27 commits)
  [Agent Builder] Agent overview page design updates (elastic#260468)
  [Inference UI] Add model detail flyout with endpoint management (elastic#260307)
  [Fleet] Update doc links in agent policy settings (elastic#260245)
  [Security Solution] show risk score in new flyout header (elastic#260187)
  Replace deprecated EUI icons in files owned by @elastic/kibana-security (elastic#255636)
  [Cases][Templates] Add DATE_PICKER field control type (elastic#260209)
  [SharedUX] Get spaces callout on each solution nav (elastic#259723)
  [SharedUX] Preserve feature visibility on solution change (elastic#259316)
  [CI] Increase investigations cypress disks to 110G (elastic#260423)
  [Agent Builder] Expose read-only conversations on plugin start contract (elastic#260435)
  [dasboards as code] drop panels with server errors (elastic#260073)
  [One Workflow] Add force-delete (hard delete) option for workflows (elastic#260391)
  [Agent Builder] Fix sidebar error handling error (elastic#260446)
  [Agent Builder] Add attachment origin to Converse API (elastic#259043)
  [Alerting v2] Fix rule results preview chart responsiveness (elastic#260444)
  [Streams] Processing error panel UI improvements (elastic#260028)
  fix flaky test: alert details error page timeout (elastic#260302)
  [Agent Builder] Add attachment origin to Converse API (elastic#259043)
  [One Workflow] Add more unit tests to workflows_extensions plugin (elastic#260384)
  [ResponseOps] Split alerting security_and_spaces group8 FTR config to fix CI timeout (elastic#260029)
  ...
jeramysoucy pushed a commit to jeramysoucy/kibana that referenced this pull request Apr 1, 2026
…ct (elastic#260435)

## Summary

- Adds `conversations` property to `AgentBuilderPluginStart` so other
plugins can read conversations programmatically without going through
the REST API
- Exposes a `getScopedClient({ request })` factory returning a
`ReadOnlyConversationClient` with only `get` and `list` methods (no
create/update/delete)
- Follows the same pattern as `agents.getRegistry`, `tools.getRegistry`,
etc.

## Test plan

- [ ] Type check passes (`node scripts/type_check --project
x-pack/platform/plugins/shared/agent_builder/tsconfig.json`)
- [ ] All 1989 existing jest tests pass
- [ ] Consumer plugin can import `ConversationsStart` and
`ReadOnlyConversationClient` types

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Apr 2, 2026
…ct (elastic#260435)

## Summary

- Adds `conversations` property to `AgentBuilderPluginStart` so other
plugins can read conversations programmatically without going through
the REST API
- Exposes a `getScopedClient({ request })` factory returning a
`ReadOnlyConversationClient` with only `get` and `list` methods (no
create/update/delete)
- Follows the same pattern as `agents.getRegistry`, `tools.getRegistry`,
etc.

## Test plan

- [ ] Type check passes (`node scripts/type_check --project
x-pack/platform/plugins/shared/agent_builder/tsconfig.json`)
- [ ] All 1989 existing jest tests pass
- [ ] Consumer plugin can import `ConversationsStart` and
`ReadOnlyConversationClient` types

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants