Skip to content

[Types] Upgrade types and include new required model card fields#2

Merged
juanmrad merged 3 commits intomainfrom
upgrade-types-and-update-model-cards
Mar 23, 2026
Merged

[Types] Upgrade types and include new required model card fields#2
juanmrad merged 3 commits intomainfrom
upgrade-types-and-update-model-cards

Conversation

@juanmrad
Copy link
Member

No description provided.

@juanmrad juanmrad requested a review from vinaysrao1 March 21, 2026 22:27
Copy link

@vinaysrao1 vinaysrao1 left a comment

Choose a reason for hiding this comment

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

All comments are minor, approving.

src/index.ts Outdated
@@ -20,48 +21,104 @@
const modelCard: ModelCard = {
modelName: 'COOP Integration Example',
version: '1.0.0',

Choose a reason for hiding this comment

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

There are a lot of versions here - making sure this is the version of the model card for this integration.

Choose a reason for hiding this comment

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

And that it is OK to be 1.0.0 even though the types package has moved to 2.0.0. I think this is fine, would like your eyes on that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually updated all to 2.0 as this package was upgraded to 2.0 given types also changed,

src/index.ts Outdated
const manifest: IntegrationManifest = {
id: INTEGRATION_ID,
name: 'COOP Integration Example',
version: '1.0.0',

Choose a reason for hiding this comment

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

Same as above, re version numbers

package.json Outdated

Choose a reason for hiding this comment

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

Nit, capitalize A ?

): Promise<{ outputType: typeof outputType; score: number }> {
// Returns a random number between 0 and 100.
// Because outputType is { scalarType: 'NUMBER' }, Coop can take the score and compare it to a threshold in the rule.
const score = Math.random() * 100;

Choose a reason for hiding this comment

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

Also a nit - readme and the comment in Line 218 above says score between 0 and 1

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated all to be 0-100. 0-1 may be hard and cause confusions around how many decimal points and such.

@juanmrad juanmrad merged commit 56c9c6b into main Mar 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants