Skip to content

Commit

Permalink
[Genai Connectors] Add missing telemetryMetadata field definition (el…
Browse files Browse the repository at this point in the history
…astic#211733)

As part of elastic#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.
  • Loading branch information
P1llus authored Feb 19, 2025
1 parent a015f74 commit b85919e
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b85919e

Please sign in to comment.