@c8y/tutorial 1023.79.1 → 1023.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@c8y/tutorial",
3
- "version": "1023.79.1",
3
+ "version": "1023.80.0",
4
4
  "description": "This package is used to scaffold a tutorial for Cumulocity IoT Web SDK which explains a lot of concepts.",
5
5
  "dependencies": {
6
6
  "@angular/cdk": "^20.2.14",
7
- "@c8y/bootstrap": "1023.79.1",
8
- "@c8y/client": "1023.79.1",
9
- "@c8y/ngx-components": "1023.79.1",
10
- "@c8y/style": "1023.79.1",
7
+ "@c8y/bootstrap": "1023.80.0",
8
+ "@c8y/client": "1023.80.0",
9
+ "@c8y/ngx-components": "1023.80.0",
10
+ "@c8y/style": "1023.80.0",
11
11
  "leaflet": "1.9.4",
12
12
  "monaco-editor": "~0.53.0",
13
13
  "ngx-bootstrap": "20.0.2",
14
14
  "rxjs": "7.8.2"
15
15
  },
16
16
  "devDependencies": {
17
- "@c8y/devkit": "1023.79.1",
18
- "@c8y/options": "1023.79.1"
17
+ "@c8y/devkit": "1023.80.0",
18
+ "@c8y/options": "1023.80.0"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@angular/common": ">=20 <21"
@@ -78,37 +78,36 @@ export class ChatExampleComponent {
78
78
  setTimeout(() => {
79
79
  // Simulate a delay for the response
80
80
  this.messages.push({
81
- content: "I've finished implementing your **amazing idea**.",
82
- steps: [
81
+ content: [
83
82
  {
84
83
  type: 'text',
85
- text: '**Great idea**, I can definitely help you with that!\n\nFirst let me use some tools to gather the information I need.',
86
- reasoning:
87
- "The user asked me a question but I need more information. I see, I have some tools available that can help! \n\nNow I'll initiate a call to help solve this problem.",
88
- toolResults: [
89
- {
90
- toolName: 'c8y-read-documentation',
91
- toolCallId: 'call1',
92
- type: 'tool-result',
93
- input: { query: 'Example query' },
94
- output: '<html>\n<h1>\n C8Y doc sample\n</h1>\n</html>'
95
- },
96
- {
97
- toolName: 'c8y-tool-with-json-output',
98
- toolCallId: 'call3',
99
- type: 'tool-result',
100
- input: {},
101
- output: { 'Key 1': 123, 'Key 2': 'Value 2' }
102
- },
103
- {
104
- toolName: 'c8y-tool-with-error',
105
- toolCallId: 'call4',
106
- type: 'tool-result',
107
- input: { url: 'something invalid' },
108
- output: 'This is an error message\nSomething bad happened',
109
- error: true
110
- }
111
- ]
84
+ text: '**Great idea**, I can definitely help you with that!\n\nFirst let me use some tools to gather the information I need.'
85
+ },
86
+ {
87
+ type: 'reasoning',
88
+ text: "The user asked me a question but I need more information. I see, I have some tools available that can help! \n\nNow I'll initiate a call to help solve this problem."
89
+ },
90
+ {
91
+ type: 'tool-result',
92
+ toolName: 'c8y-read-documentation',
93
+ toolCallId: 'call1',
94
+ input: { query: 'Example query' },
95
+ output: '<html>\n<h1>\n C8Y doc sample\n</h1>\n</html>'
96
+ },
97
+ {
98
+ toolName: 'c8y-tool-with-json-output',
99
+ toolCallId: 'call3',
100
+ type: 'tool-result',
101
+ input: {},
102
+ output: { 'Key 1': 123, 'Key 2': 'Value 2' }
103
+ },
104
+ {
105
+ toolName: 'c8y-tool-with-error',
106
+ toolCallId: 'call4',
107
+ type: 'tool-result',
108
+ input: { url: 'something invalid' },
109
+ output: 'This is an error message\nSomething bad happened',
110
+ error: true
112
111
  },
113
112
  {
114
113
  type: 'text',