kibana/packages/kbn-server-route-repository
Dario Gieselaar e47152d8fd
[Observability AI Assistant]: Chat & function calling (#162906)
Implements chat & function calling for the Observability AI Assistant.
The APM related changes are due to a correction in the `toBooleanRt`
type.

Code in `x-pack/observability_ai_assistant` has been reviewed via
feature branches.

---------

Co-authored-by: Coen Warmer <coen.warmer@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
2023-08-08 13:48:05 +02:00
..
src [Observability AI Assistant]: Chat & function calling (#162906) 2023-08-08 13:48:05 +02:00
browser_index.ts Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
index.ts [Observability AI Assistant]: Move to new plugin, update design and use connectors (#162243) 2023-07-28 11:52:00 -04:00
jest.config.js [APM] Extract server type utils to package (#96349) 2021-04-08 13:26:43 +02:00
kibana.jsonc Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
package.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
README.md Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
tsconfig.json [Observability AI Assistant]: Move to new plugin, update design and use connectors (#162243) 2023-07-28 11:52:00 -04:00

@kbn/server-route-repository

Utility functions for creating a typed server route repository, and a typed client, generating runtime validation and type validation from the same route definition.

Usage

TBD

Server vs. Browser entry points

This package exposes utils that can be used on both: the server and the browser. However, importing the package might bring in server-only code, affecting the bundle size. To avoid this, the package exposes 2 entry points: index.js and web_index.js.

When adding utilities to this package, please make sure to update the entry points accordingly and the BUILD.bazel's target_web target build to include all the necessary files.