Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion golem-templates/templates/js/js-app-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"dependencies": {
"@golemcloud/golem-ts": "1.5.0",
"@golemcloud/golem-ts-sdk": "0.0.1-dev.3",
"@golemcloud/golem-ts-sdk": "0.0.1-dev.11",
"rttist": "^1.0.0-rc.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion golem-templates/templates/ts/ts-app-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"dependencies": {
"@golemcloud/golem-ts": "1.5.0",
"@golemcloud/golem-ts-sdk": "0.0.1-dev.3",
"@golemcloud/golem-ts-sdk": "0.0.1-dev.11",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't know this needs to be changed as well. Somehow if template-golem-agent-ts is changed, this should be in sync as well.

Copy link
Contributor

@noise64 noise64 Aug 13, 2025

Choose a reason for hiding this comment

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

Js and ts templates use the same package json when used together, so these have to be in sync for now, i plan to add dep merging eventually

"rttist": "^1.0.0-rc.4"
},
"devDependencies": {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {
BaseAgent,
Agent,
Prompt,
Description,
agent,
prompt,
description,
} from '@golemcloud/golem-ts-sdk';

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

Expand All @@ -26,7 +26,7 @@ class AssistantAgent extends BaseAgent {
}
}

@Agent()
@agent()
class WeatherAgent extends BaseAgent {
private readonly userName: string;

Expand All @@ -35,8 +35,8 @@ class WeatherAgent extends BaseAgent {
this.userName = username;
}

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