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

Commit b9a61d4

Browse files
authored
Make code-first user template have same SDK version as in precompiled WASM (#320)
* Fix decorator to be lowercase and bug fix on template package json * Upgrade to sdk 12
1 parent 6c9b560 commit b9a61d4

File tree

6 files changed

+132
-132
lines changed

6 files changed

+132
-132
lines changed

golem-templates/templates/js/js-app-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"dependencies": {
1010
"@golemcloud/golem-ts": "1.5.0",
11-
"@golemcloud/golem-ts-sdk": "0.0.1-dev.3",
11+
"@golemcloud/golem-ts-sdk": "0.0.1-dev.12",
1212
"rttist": "^1.0.0-rc.4"
1313
},
1414
"devDependencies": {

golem-templates/templates/ts/ts-app-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"dependencies": {
1010
"@golemcloud/golem-ts": "1.5.0",
11-
"@golemcloud/golem-ts-sdk": "0.0.1-dev.3",
11+
"@golemcloud/golem-ts-sdk": "0.0.1-dev.12",
1212
"rttist": "^1.0.0-rc.4"
1313
},
1414
"devDependencies": {
Binary file not shown.

golem-templates/templates/ts/ts-app-component-default/components-ts/component-name/src/main.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {
22
BaseAgent,
3-
Agent,
4-
Prompt,
5-
Description,
3+
agent,
4+
prompt,
5+
description,
66
} from '@golemcloud/golem-ts-sdk';
77

8-
@Agent()
8+
@agent()
99
class AssistantAgent extends BaseAgent {
10-
@Prompt("Ask your question")
11-
@Description("This method allows the agent to answer your question")
10+
@prompt("Ask your question")
11+
@description("This method allows the agent to answer your question")
1212
async ask(name: string): Promise<string> {
1313
const customData = { data: "Sample data", value: 42 };
1414

@@ -26,7 +26,7 @@ class AssistantAgent extends BaseAgent {
2626
}
2727
}
2828

29-
@Agent()
29+
@agent()
3030
class WeatherAgent extends BaseAgent {
3131
private readonly userName: string;
3232

@@ -35,8 +35,8 @@ class WeatherAgent extends BaseAgent {
3535
this.userName = username;
3636
}
3737

38-
@Prompt("Get weather")
39-
@Description("Weather forecast weather for you")
38+
@prompt("Get weather")
39+
@description("Weather forecast weather for you")
4040
async getWeather(name: string, param2: CustomData): Promise<string> {
4141
return Promise.resolve(
4242
`Hi ${this.userName} Weather in ${name} is sunny. Params passed: ${name} ${JSON.stringify(param2)}. ` +

0 commit comments

Comments
 (0)