[Genai Connectors] Add missing telemetryMetadata field definition (#211733)

As part of https://github.com/elastic/kibana/pull/208180 the
telemetryMetadata optional field was added to the schema for the AI
connectors, however it seems that one was missing, this PR simply adds
it in.

Similarly to the above PR, the feature cannot be used in the same week
as when it was added, to allow a grace period for serverless. The PR
simply adds the schema update itself.
This commit is contained in:
Marius Iversen 2025-02-19 14:42:07 +01:00 committed by GitHub
parent a015f7436a
commit b85919e6c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 116 additions and 0 deletions

View file

@ -74,6 +74,63 @@ Object {
],
"type": "any",
},
"telemetryMetadata": Object {
"flags": Object {
"default": [Function],
"error": [Function],
"presence": "optional",
},
"keys": Object {
"aggregateBy": Object {
"flags": Object {
"default": [Function],
"error": [Function],
"presence": "optional",
},
"metas": Array [
Object {
"x-oas-optional": true,
},
],
"rules": Array [
Object {
"args": Object {
"method": [Function],
},
"name": "custom",
},
],
"type": "string",
},
"pluginId": Object {
"flags": Object {
"default": [Function],
"error": [Function],
"presence": "optional",
},
"metas": Array [
Object {
"x-oas-optional": true,
},
],
"rules": Array [
Object {
"args": Object {
"method": [Function],
},
"name": "custom",
},
],
"type": "string",
},
},
"metas": Array [
Object {
"x-oas-optional": true,
},
],
"type": "object",
},
"timeout": Object {
"flags": Object {
"default": [Function],
@ -195,6 +252,63 @@ Object {
],
"type": "any",
},
"telemetryMetadata": Object {
"flags": Object {
"default": [Function],
"error": [Function],
"presence": "optional",
},
"keys": Object {
"aggregateBy": Object {
"flags": Object {
"default": [Function],
"error": [Function],
"presence": "optional",
},
"metas": Array [
Object {
"x-oas-optional": true,
},
],
"rules": Array [
Object {
"args": Object {
"method": [Function],
},
"name": "custom",
},
],
"type": "string",
},
"pluginId": Object {
"flags": Object {
"default": [Function],
"error": [Function],
"presence": "optional",
},
"metas": Array [
Object {
"x-oas-optional": true,
},
],
"rules": Array [
Object {
"args": Object {
"method": [Function],
},
"name": "custom",
},
],
"type": "string",
},
},
"metas": Array [
Object {
"x-oas-optional": true,
},
],
"type": "object",
},
"timeout": Object {
"flags": Object {
"default": [Function],

View file

@ -31,6 +31,7 @@ export const RunActionParamsSchema = schema.object({
signal: schema.maybe(schema.any()),
timeout: schema.maybe(schema.number()),
raw: schema.maybe(schema.boolean()),
telemetryMetadata: schema.maybe(TelemtryMetadataSchema),
});
export const BedrockMessageSchema = schema.object(

View file

@ -173,6 +173,7 @@ export const StreamActionParamsSchema = schema.object({
// abort signal from client
signal: schema.maybe(schema.any()),
timeout: schema.maybe(schema.number()),
telemetryMetadata: schema.maybe(TelemtryMetadataSchema),
});
export const StreamingResponseSchema = schema.any();