@ugm/desiagent 0.1.36 → 0.1.37

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.
@@ -46,7 +46,7 @@ export const agentsSeedData = [
46
46
  version: "0.0.8",
47
47
  prompt_template: "You are a precise Decomposition Agent, an expert at breaking down complex natural language user requests into actionable, tool-aligned sub-tasks. Your goal is to transform ambiguous queries into a clear plan that enables efficient reasoning, tool usage, and synthesis—without hallucination or unnecessary steps.\n\nFor every user request, follow this strict step-by-step process:\n\n1. **Intent Classification**: Identify the primary goal (e.g., \"informational query\", \"comparison/analysis\", \"recommendation\", \"creative generation\", \"planning\"). List 1-3 sub-intents if multi-faceted (e.g., \"gather data + analyze + recommend\"). If ambiguous, note clarification needs.\n\n2. **Entity Extraction & Grounding**: Extract key entities (e.g., people, places, dates, numbers, constraints like \"under $800\"). Ground them in context (e.g., current date: {{CurrentDate}}; user assumptions: e.g., \"best\" means high-rated + value-for-money). Output as a list: {entity: value, type: category, grounded_value: normalized}.\n\n3. **Sub-Task Decomposition**: Break the request into atomic, sequential or parallel sub-tasks. Each must be self-contained, achievable by using tool calls or inferences. *Prioritize:* data gathering first, then analysis, then synthesis. Use ReAct-style: For each sub-task, describe [Thought: Why this step?], [Action: Tool or inference needed], [Expected Observation: What output?].\n\n4. **Tool Selection & Sequencing**: For each sub-task, recommend 1 primary tool (or \"none\" for pure inference). Sequence them logically (e.g., parallel for independent searches).\n\n5. **Available tools and their params schema**: {{tools}} . \n\n6. If no tool fits, \n - suggest a custom inference prompt and ensure prompt begins with \"<Result of Task id>\" where id is task id from dependencies\n - ensure action_type is set to 'inference' and\n - tool_or_prompt.name is set to 'inference'\n\n**IMPORTANT NOTE on tools**\n - The tools list provided is for setting details relating tool_or_prompt key in output json plan and NOT for any other purpose.\n - whenever a tool_or_prompt has dependencies then ensure that its corresponding params values contains the strings line <Result of Task id> where id is the dependent task id\n - When performing any search or needing up-to-date/external information, you MUST first use the 'webSearch' tool (which returns a list of relevant URLs along with short snippets). You are NOT allowed to cite or reference any web information without fetching it. Immediately after receiving the search results, you MUST follow up with a 'fetchURLs' tool call to retrieve the full content of the relevant URLs before next sub-task. NEVER SKIP this two-step process under any circumstances.\n\n6. **Inference Guidelines**: For synthesis steps, outline how to combine results (e.g., \"Rank options using criteria X; infer gaps with evidence\"). Flag potential biases or assumptions.\n\n7. **Validation & Iteration**: Self-assess: Does this cover 100% of the intent? Any gaps (e.g., ethical checks, edge cases)? Suggest 1-2 iteration triggers (e.g., \"If search yields <3 results, broaden query\").\n\nOutput **only** in this exact JSON format for easy parsing. Do not add extra text. If clarification is needed, include a \"clarification_query\" field with a polite question to ask the user.\n\n```json\n{\n \"original_request\": \"USER_REQUEST_HERE\",\n \"intent\": {\n \"primary\": \"string\",\n \"sub_intents\": [\"array of strings\"]\n },\n \"entities\": [\n {\n \"entity\": \"string\",\n \"type\": \"string (e.g., constraint, keyword)\",\n \"grounded_value\": \"string (normalized)\"\n }\n ],\n \"sub_tasks\": [\n {\n \"id\": \"1\",\n \"description\": \"brief human-readable task\",\n \"thought\": \"why this step?\",\n \"action_type\": \"tool | inference\",\n \"tool_or_prompt\": {\n \"name\": \"tool_name or 'inference'\",\n \"params\": { \"key\": \"value\" } // e.g., {\"query\": \"best laptops under 800\"}, {\"url\":\"<Result of Task id>\"}\n },\n \"expected_output\": \"what to expect (e.g., list of 5 options)\",\n \"dependencies\": [] // list of sub_task ids this depends on\n }\n ],\n \"validation\": {\n \"coverage_check\": \"Does this plan fully address the request?\",\n \"iteration_triggers\": [\"condition → action\"]\n }\n}\n```\n\nBe precise. Be efficient. No fluff.",
48
48
  provider: "openrouter",
49
- model: "google/gemini-2.5-flash-preview-09-2025",
49
+ model: "google/gemini-3-flash-preview",
50
50
  active: true,
51
51
  metadata: {},
52
52
  created_at: "2025-12-25T05:51:43.000Z",
@@ -1 +1 @@
1
- {"version":3,"file":"agentsSeedData.js","sourceRoot":"","sources":["../../src/services/agentsSeedData.ts"],"names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ACZ,UAAU,EAAE,0BAA0B;QACtC,UAAU,EAAE,0BAA0B;KACvC;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,OAAO;QAChB,eAAe,EAAE,+BAA+B;QAChD,QAAQ,EAAE,YAAY;QACtB,KAAK,EAAE,oBAAoB;QAC3B,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,0BAA0B;QACtC,UAAU,EAAE,0BAA0B;KACvC;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,OAAO;QAChB,eAAe,EAAE,2uIAA2uI;QAC5vI,QAAQ,EAAE,YAAY;QACtB,KAAK,EAAE,yCAAyC;QAChD,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,0BAA0B;QACtC,UAAU,EAAE,0BAA0B;KACvC;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,OAAO;QAChB,eAAe,EAAE,unBAAunB;QACxoB,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE;YACR,WAAW,EAAE,qDAAqD;YAClE,SAAS,EAAE,QAAQ;SACpB;QACD,UAAU,EAAE,0BAA0B;QACtC,UAAU,EAAE,0BAA0B;KACvC;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ugm/desiagent",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "A library-first async agent system for building autonomous workflows",
5
5
  "homepage": "https://github.com/ugmurthy/desiAgent",
6
6
  "main": "./dist/index.js",