Skip to content

Conversation

@huangjeff5
Copy link
Contributor

@huangjeff5 huangjeff5 commented Dec 3, 2025

  • Refactors runAction/streamAction to return headers early (including traceID)
  • Added cancelAction endpoint to reflection server

@huangjeff5 huangjeff5 requested review from apascal07 and removed request for apascal07 December 3, 2025 02:54
@huangjeff5 huangjeff5 marked this pull request as ready for review December 3, 2025 17:49
// RunJSONWithTelemetry runs the action with the given JSON input and streaming callback and returns the output as JSON along with telemetry info.
RunJSONWithTelemetry(ctx context.Context, input json.RawMessage, cb func(context.Context, json.RawMessage) error) (*ActionRunResult[json.RawMessage], error)
// The telemetryCb callback, if provided, is called as soon as the trace span is created with the trace ID and span ID.
RunJSONWithTelemetry(ctx context.Context, input json.RawMessage, cb func(context.Context, json.RawMessage) error, telemetryCb TelemetryCallback) (*ActionRunResult[json.RawMessage], error)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, this is only used for reflection API? Can we pull that from the context instead so that this isn't a breaking change?

Properties map[string]*Schema `json:"properties,omitempty"`
AdditionalProperties *Schema `json:"additionalProperties,omitempty"`
Const bool `json:"const,omitempty"`
Const any `json:"const,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious, what happened here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#3801 updates genkit-schema.json
const now can take string values, rather than bool values
So we need to update jsonschema.go to be able to generate updated schemas

@huangjeff5 huangjeff5 requested a review from apascal07 December 4, 2025 01:37
@huangjeff5 huangjeff5 requested a review from apascal07 December 5, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants