@xuda.io/ai_module 1.1.5163 → 1.1.5165
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/index.mjs +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -10940,6 +10940,7 @@ export const get_chat_suggestions = async function (req) {
|
|
|
10940
10940
|
|
|
10941
10941
|
const get_suggestions = async function () {
|
|
10942
10942
|
const AgentItemSchema = z.object({
|
|
10943
|
+
type: z.literal('agent').describe('Constant identifier, always "agent"'),
|
|
10943
10944
|
agent_id: z.string().describe('The unique identifier for the agent'),
|
|
10944
10945
|
short_action: z.string().describe('A brief, 2-4 word call to action'),
|
|
10945
10946
|
agent_description: z.string().describe("A professional description of the agent's capabilities"),
|
|
@@ -10981,10 +10982,10 @@ export const get_chat_suggestions = async function (req) {
|
|
|
10981
10982
|
Agent Source: ${JSON.stringify(agents_docs)}
|
|
10982
10983
|
|
|
10983
10984
|
Output: > Return a JSON array of exactly 5 objects following this schema:
|
|
10984
|
-
[{ "agent_id": "string", "short_action": "string", "agent_description": "string" }]
|
|
10985
|
+
[{ "type":"string","agent_id": "string", "short_action": "string", "agent_description": "string" }]
|
|
10985
10986
|
|
|
10986
10987
|
## output example:
|
|
10987
|
-
[{agent_id:"392_agn_55cb328d2743",short_action:"Create article","agent_description":"create proffessional article..."}]
|
|
10988
|
+
[{"type":"agent",agent_id:"392_agn_55cb328d2743",short_action:"Create article","agent_description":"create proffessional article..."}]
|
|
10988
10989
|
|
|
10989
10990
|
`,
|
|
10990
10991
|
model: ai_model,
|