Fix Artifact Schemas: Align with v1alpha API#85
Conversation
Fixes #79 * types.ts: * Update `RestMediaArtifact` to use `mimeType` instead of `format`. * Update `RestBashOutputArtifact` to use `output` instead of `stdout`/`stderr`. * artifacts.ts: * Update `MediaArtifact` constructor to map `mimeType` to `format`. * Update `BashArtifact` constructor to map `output` to `stdout`. * tests: * Update `mappers.test.ts` and `artifacts.test.ts` to reflect the schema changes. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
* Align SDK artifact schemas with v1alpha API (mimeType, output). * Update `RestMediaArtifact` to use `mimeType` instead of `format`. * Update `RestBashOutputArtifact` to use `output` instead of `stdout`/`stderr`. * Update `MediaArtifact` and `BashArtifact` constructors to map new fields to old properties for backward compatibility. * Fix MCP test helpers to use new `BashArtifact` constructor signature. * Update core tests to reflect schema changes. Fixes #79 Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This PR aligns the SDK's artifact schemas with the v1alpha API.
Specifically:
RestMediaArtifactnow usesmimeTypeinstead offormat.RestBashOutputArtifactnow usesoutputinstead ofstdoutandstderr.The
MediaArtifactandBashArtifactclasses have been updated to consume these new fields while maintaining backward compatibility for the public SDK surface (formatandstdoutproperties are still populated).Existing tests have been updated to match the new schema.
PR created automatically by Jules for task 3830261771133263914 started by @davideast