Skip to content

[8.15] BedrockChat & GeminiChat (#186809)#189008

Merged
stephmilovic merged 2 commits intoelastic:8.15from
stephmilovic:backport/8.15/pr-186809
Jul 23, 2024
Merged

[8.15] BedrockChat & GeminiChat (#186809)#189008
stephmilovic merged 2 commits intoelastic:8.15from
stephmilovic:backport/8.15/pr-186809

Conversation

@stephmilovic
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.15:

Questions ?

Please refer to the Backport tool documentation

## Summary

Adopted `BedrockChat` from `@langchain/community` package that adds
support for tools calling
https://js.langchain.com/v0.2/docs/integrations/chat/bedrock/

Adopted `ChatGoogleGenerativeAI ` from `@langchain/google-genai` package
that adds support for tools calling
https://js.langchain.com/v0.2/docs/integrations/chat/google_generativeai

Hidden behind FF:
`--xpack.securitySolution.enableExperimental=[assistantBedrockChat]`

As of this PR `integration_assistant` is still going to use
`ActionsClientSimpleChatModel`. After the FF will be enabled by default
we will switch `integration_assistant` to use new chat model.

Thank you @stephmilovic a ton 🙇

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
(cherry picked from commit 26dd61e)

# Conflicts:
#	package.json
#	yarn.lock
@stephmilovic stephmilovic requested review from a team as code owners July 23, 2024 20:31
@stephmilovic stephmilovic added the backport This PR is a backport of another PR label Jul 23, 2024
@stephmilovic stephmilovic enabled auto-merge (squash) July 23, 2024 20:31
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
integrationAssistant 536 539 +3
securitySolution 5613 5616 +3
total +6

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.8MB 1.8MB +4.2KB
integrationAssistant 933.2KB 937.4KB +4.2KB
securitySolution 17.2MB 17.2MB +4.5KB
total +12.8KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/langchain 3 1 -2
elasticAssistant 1 2 +1
total -1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
securitySolution 86.4KB 86.4KB +24.0B
stackConnectors 53.6KB 53.7KB +60.0B
timelines 109.3KB 113.4KB +4.2KB
total +4.3KB
Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/langchain 0 1 +1

Total ESLint disabled count

id before after diff
@kbn/langchain 0 1 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@stephmilovic stephmilovic merged commit aa450a4 into elastic:8.15 Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants