@indra.ai/deva.services 0.0.14 → 0.0.16

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.
@@ -110,24 +110,25 @@ export default {
110
110
  this.feature('services');
111
111
  this.context('chat', packet.q.agent.name);
112
112
  this.action('services', 'chat');
113
+ const data = {};
114
+ const agent = this.agent();
115
+ const client = this.client();
116
+ const info = this.info();
117
+
118
+ this.state('get', 'chat:help');
119
+ const help = await this.help('corpus', info.dir);
120
+
113
121
  return new Promise((resolve, reject) => {
114
122
  if (!this.vars.ask) return resolve('Ask not configured.');
115
- const data = {};
116
- const agent = this.agent();
117
- const client = this.client();
118
- const info = this.info();
119
123
 
120
- agent.hash = this.lib.hash(agent.profile);
121
- client.hash = this.lib.hash(client.profile);
122
124
  // get the agent main help file for teir corpus.
123
- this.state('get', 'chat:help');
124
- this.help('main', info.dir).then(corpus => {
125
- data.corpus = corpus;
125
+ this.question(`${this.askChr}feecting parse ${help}`).then(corpus => {
126
+ data.corpus = corpus.a.text;
126
127
  this.state('get', 'ask:chat');
127
128
  return this.question(`${this.askChr}chat relay ${packet.q.text}`, {
128
129
  client: buildProfile(client, 'client'),
129
130
  agent: buildProfile(agent, 'agent'),
130
- corpus,
131
+ corpus: corpus.a.text,
131
132
  max_tokens: this.vars.ask.max_tokens,
132
133
  history: this.vars.ask.history.slice(-10),
133
134
  memory: agent.key,
@@ -0,0 +1,9 @@
1
+ # {{agent.name}}
2
+
3
+ {{profile}}
4
+
5
+ talk: #algorithm file:public main:header
6
+ talk: #security file:public main:header
7
+ talk: #legal file:public main:header
8
+
9
+ copyright: ©2025 Quinn Michaels
@@ -1,22 +1,11 @@
1
- ::begin:center
2
- image: /public/devas/::agent_key::/main.png
3
- ::end:center
4
-
5
1
  # ::agent_name::
6
2
 
7
- ::profile::
8
-
9
- ---
10
-
11
- talk:#docs view devas/main:global
12
-
13
- ---
14
-
15
- talk:#docs view devas/main:security
3
+ ::agent_profile::
16
4
 
17
- ---
5
+ talk: #security file:public main:header
6
+ talk: #algorithm file:public main:header
18
7
 
19
- copyright: (c)2023 Quinn Michaels
8
+ copyright: (c)2025 Quinn Michaels
20
9
 
21
10
  ::begin:hidden
22
11
  #color = ::agent_color::
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 4855882658530,
3
3
  "name": "@indra.ai/deva.services",
4
- "version": "0.0.14",
4
+ "version": "0.0.16",
5
5
  "author": "Quinn Michaels",
6
6
  "license": "MIT",
7
7
  "copyright": "2025",
@@ -27,6 +27,6 @@
27
27
  },
28
28
  "homepage": "https://deva.space/devas/services",
29
29
  "dependencies": {
30
- "@indra.ai/deva": "^1.4.14"
30
+ "@indra.ai/deva": "^1.4.16"
31
31
  }
32
32
  }