Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit c0ee9d5

Browse files
committed
chore: update dependencies
1 parent 793b88a commit c0ee9d5

34 files changed

+128
-202
lines changed

sdk/assemblyscript/examples/anthropic-functions/assembly/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function getStockPrice(company: string, useTools: bool): string {
4141
input.tools = [
4242
{
4343
name: "stock_price",
44-
inputSchema: `{"type":"object","properties":{"symbol":{"type":"string","description":"The stock symbol"}},"required":["symbol"]}`,
44+
inputSchema: JSON.Raw.from(`{"type":"object","properties":{"symbol":{"type":"string","description":"The stock symbol"}},"required":["symbol"]}`),
4545
description: "gets the stock price of a symbol",
4646
},
4747
];
@@ -65,7 +65,7 @@ export function getStockPrice(company: string, useTools: bool): string {
6565
const toolUse = output.content[0];
6666
const inputs = toolUse.input!;
6767

68-
const parsedInput = JSON.parse<StockPriceInput>(inputs);
68+
const parsedInput = JSON.parse<StockPriceInput>(inputs.data);
6969
const symbol = parsedInput.symbol;
7070
const stockPrice = callStockPriceApi(symbol);
7171
return `The stock price of ${symbol} is $${stockPrice.GlobalQuote.price}`;

sdk/assemblyscript/examples/anthropic-functions/package-lock.json

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/assemblyscript/examples/anthropic-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@hypermode/modus-sdk-as": "../../src",
16-
"json-as": "^0.9.29"
16+
"json-as": "^1.0.0-beta.17"
1717
},
1818
"devDependencies": {
1919
"@eslint/js": "^9.19.0",

sdk/assemblyscript/examples/auth/package-lock.json

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/assemblyscript/examples/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@hypermode/modus-sdk-as": "../../src",
16-
"json-as": "^0.9.29"
16+
"json-as": "^1.0.0-beta.17"
1717
},
1818
"devDependencies": {
1919
"@eslint/js": "^9.19.0",

sdk/assemblyscript/examples/classification/package-lock.json

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/assemblyscript/examples/classification/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@hypermode/modus-sdk-as": "../../src",
16-
"json-as": "^0.9.29"
16+
"json-as": "^1.0.0-beta.17"
1717
},
1818
"devDependencies": {
1919
"@eslint/js": "^9.19.0",

sdk/assemblyscript/examples/collections/package-lock.json

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/assemblyscript/examples/collections/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@hypermode/modus-sdk-as": "../../src",
16-
"json-as": "^0.9.29"
16+
"json-as": "^1.0.0-beta.17"
1717
},
1818
"devDependencies": {
1919
"@eslint/js": "^9.19.0",

sdk/assemblyscript/examples/dgraph/package-lock.json

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)