Skip to content

[OneChat] Fix bug where tool results are not sent back to the LLM#232258

Merged
sorenlouv merged 3 commits intoelastic:mainfrom
sorenlouv:fix-bug-missing-tool-call
Aug 20, 2025
Merged

[OneChat] Fix bug where tool results are not sent back to the LLM#232258
sorenlouv merged 3 commits intoelastic:mainfrom
sorenlouv:fix-bug-missing-tool-call

Conversation

@sorenlouv
Copy link
Copy Markdown
Contributor

@sorenlouv sorenlouv commented Aug 19, 2025

Regression introduced in #229562

Tool result messages must be of type MessageContentComplex or DataContentBlock. This PR converts the result to match the type PlainTextContentBlock.

@sorenlouv sorenlouv marked this pull request as ready for review August 19, 2025 14:19
@sorenlouv sorenlouv requested a review from a team as a code owner August 19, 2025 14:19
@sorenlouv sorenlouv added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Aug 19, 2025
@sorenlouv sorenlouv enabled auto-merge (squash) August 19, 2025 14:29
@pgayvallet
Copy link
Copy Markdown
Contributor

@elasticmachine merge upstream

@sorenlouv sorenlouv merged commit 4535138 into elastic:main Aug 20, 2025
13 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #2 / Entity Analytics - Privilege Monitoring @ess Entity Privilege Monitoring APIs plain index sync should sync plain index

Metrics [docs]

✅ unchanged

History

@sorenlouv sorenlouv deleted the fix-bug-missing-tool-call branch August 20, 2025 14:10
qn895 pushed a commit to qn895/kibana that referenced this pull request Aug 26, 2025
…astic#232258)

Regression introduced in elastic#229562

Tool result messages must be of type `MessageContentComplex` or
`DataContentBlock`. This PR converts the result to match the type
`PlainTextContentBlock`.
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.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants