agentic-api 2.0.314 → 2.0.491
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/dist/src/agents/prompts.d.ts +1 -1
- package/dist/src/agents/prompts.js +9 -7
- package/dist/src/agents/simulator.d.ts +7 -3
- package/dist/src/agents/simulator.executor.d.ts +9 -3
- package/dist/src/agents/simulator.executor.js +43 -17
- package/dist/src/agents/simulator.js +47 -19
- package/dist/src/agents/simulator.prompts.d.ts +9 -8
- package/dist/src/agents/simulator.prompts.js +68 -62
- package/dist/src/agents/simulator.types.d.ts +4 -1
- package/dist/src/agents/simulator.utils.js +0 -2
- package/dist/src/execute/helpers.d.ts +75 -0
- package/dist/src/execute/helpers.js +139 -0
- package/dist/src/execute/index.d.ts +11 -0
- package/dist/src/execute/index.js +44 -0
- package/dist/src/execute/legacy.d.ts +46 -0
- package/dist/src/{execute.js → execute/legacy.js} +130 -232
- package/dist/src/execute/modelconfig.d.ts +19 -0
- package/dist/src/execute/modelconfig.js +56 -0
- package/dist/src/execute/responses.d.ts +55 -0
- package/dist/src/execute/responses.js +594 -0
- package/dist/src/execute/shared.d.ts +83 -0
- package/dist/src/execute/shared.js +188 -0
- package/dist/src/index.js +1 -1
- package/dist/src/pricing.llm.d.ts +1 -1
- package/dist/src/pricing.llm.js +39 -18
- package/dist/src/rag/embeddings.js +8 -2
- package/dist/src/rag/rag.manager.js +27 -15
- package/dist/src/rules/git/git.e2e.helper.js +21 -2
- package/dist/src/rules/git/git.health.d.ts +4 -2
- package/dist/src/rules/git/git.health.js +58 -16
- package/dist/src/rules/git/index.d.ts +1 -1
- package/dist/src/rules/git/index.js +3 -2
- package/dist/src/rules/git/repo.d.ts +46 -3
- package/dist/src/rules/git/repo.js +264 -23
- package/dist/src/rules/git/repo.pr.js +117 -13
- package/dist/src/rules/types.d.ts +11 -0
- package/dist/src/rules/utils.matter.js +16 -7
- package/dist/src/scrapper.js +1 -0
- package/dist/src/stategraph/stategraph.d.ts +26 -1
- package/dist/src/stategraph/stategraph.js +43 -2
- package/dist/src/stategraph/stategraph.storage.js +4 -0
- package/dist/src/stategraph/types.d.ts +5 -0
- package/dist/src/types.d.ts +42 -7
- package/dist/src/types.js +8 -7
- package/dist/src/usecase.js +1 -1
- package/dist/src/utils.js +28 -4
- package/package.json +9 -7
- package/dist/src/execute.d.ts +0 -63
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.491",
|
|
4
4
|
"description": "API pour l'orchestration d'agents intelligents avec séquences et escalades automatiques",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"prebuild": "npm version patch --no-git-tag-version",
|
|
12
12
|
"build": "tsc",
|
|
13
|
-
"test": "jest --
|
|
14
|
-
"test:quiet": "jest --
|
|
15
|
-
"test:verbose": "jest --
|
|
16
|
-
"test:simulator": "jest --
|
|
17
|
-
"test:simulator:quiet": "jest --
|
|
13
|
+
"test": "jest --silent",
|
|
14
|
+
"test:quiet": "jest --testPathIgnorePatterns=agent* --silent tests",
|
|
15
|
+
"test:verbose": "jest --testPathIgnorePatterns=agent* --verbose tests",
|
|
16
|
+
"test:simulator": "jest --testNamePattern=simulator.* --silent tests",
|
|
17
|
+
"test:simulator:quiet": "jest --testNamePattern=simulator.* --silent tests",
|
|
18
|
+
"test:merge-recovery": "jest --testPathPattern=merge-recovery --verbose",
|
|
19
|
+
"test:merge-recovery:single": "jest --testPathPattern=merge-recovery --testNamePattern=corrupted-index-from-previous-pr --verbose",
|
|
18
20
|
"lint": "eslint 'src/**/*.ts'",
|
|
19
21
|
"prepublishOnly": "npm run build",
|
|
20
22
|
"extract:pdf": "texttopdf ",
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
"jsdom": "^26.0.0",
|
|
32
34
|
"minisearch": "^7.1.0",
|
|
33
35
|
"natural": "^8.1.0",
|
|
34
|
-
"openai": "^
|
|
36
|
+
"openai": "^5.23.2",
|
|
35
37
|
"simple-git": "^3.27.0",
|
|
36
38
|
"stopwords-fr": "^0.3.0"
|
|
37
39
|
},
|
package/dist/src/execute.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { AgentConfig, AgenticContext, AgentModel, ExecuteAgentResult, Feedback, ExecutionResult } from "./types";
|
|
2
|
-
import { Writable } from "stream";
|
|
3
|
-
import { AgentStateGraph } from "./stategraph";
|
|
4
|
-
export declare const DummyWritable: any;
|
|
5
|
-
export declare function modelConfig(model: string, custom?: any): AgentModel;
|
|
6
|
-
export declare function sendFeedback(params: Feedback): void;
|
|
7
|
-
export interface ReadCompletionsStreamOptions {
|
|
8
|
-
stateGraph: AgentStateGraph;
|
|
9
|
-
discussion: any;
|
|
10
|
-
agentConfig: AgentConfig;
|
|
11
|
-
agents: AgentConfig[];
|
|
12
|
-
discussionRootAgent: string;
|
|
13
|
-
stdout: Writable;
|
|
14
|
-
session: AgenticContext;
|
|
15
|
-
final: any;
|
|
16
|
-
verbose?: boolean;
|
|
17
|
-
enrichWithMemory?: (role: string, agent: AgentConfig, context: AgenticContext) => Promise<string>;
|
|
18
|
-
}
|
|
19
|
-
export declare function readCompletionsStream(params: ReadCompletionsStreamOptions): Promise<ExecutionResult>;
|
|
20
|
-
/**
|
|
21
|
-
* Parameters for executing an agent set
|
|
22
|
-
* @interface ExecuteAgentSetParams
|
|
23
|
-
* @property {string} query - User query to process
|
|
24
|
-
* @property {string} home - Name of the agent to start with
|
|
25
|
-
* @property {Writable} stdout - Stream to write output to
|
|
26
|
-
* @property {any[]} [messages] - Messages to add to the conversation
|
|
27
|
-
* @property {boolean} [verbose] - Whether to log verbose debug information
|
|
28
|
-
*/
|
|
29
|
-
export interface ExecuteAgentSetParams {
|
|
30
|
-
enrichWithMemory?: (role: string, agent: AgentConfig, context: AgenticContext) => Promise<string>;
|
|
31
|
-
query: string;
|
|
32
|
-
home?: string;
|
|
33
|
-
model?: string;
|
|
34
|
-
stdout: Writable;
|
|
35
|
-
messages?: any[];
|
|
36
|
-
verbose?: boolean;
|
|
37
|
-
json?: boolean;
|
|
38
|
-
schema?: any;
|
|
39
|
-
debug?: boolean;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Executes a set of agents to process a user query
|
|
43
|
-
*
|
|
44
|
-
* This function initializes the agent memory, processes the user query through the appropriate
|
|
45
|
-
* agent, and handles any agent transfers or tool calls that occur during execution.
|
|
46
|
-
*
|
|
47
|
-
* @param {AgentConfig[]} agentSet - Array of agent configurations
|
|
48
|
-
* @param {AgenticContext} session - {memory, user, ...} - Session object to store/read conversation state
|
|
49
|
-
* @param {ExecuteAgentSetParams} params - Execution parameters
|
|
50
|
-
* @returns {Promise<void>}
|
|
51
|
-
*/
|
|
52
|
-
export declare function executeAgentSet(agentSet: AgentConfig[], context: AgenticContext, params: ExecuteAgentSetParams): Promise<ExecutionResult>;
|
|
53
|
-
export declare function executeAgent(agentSet: AgentConfig[], params: ExecuteAgentSetParams): Promise<ExecuteAgentResult>;
|
|
54
|
-
/**
|
|
55
|
-
* Executes a simple query without agent orchestration or tool handling
|
|
56
|
-
*
|
|
57
|
-
* This is the simplest level of execution - just sends a query to the LLM
|
|
58
|
-
* and returns the response. No tools, no agent transfers, no complex logic.
|
|
59
|
-
*
|
|
60
|
-
* @param params - Execution parameters including query and model config
|
|
61
|
-
* @returns Promise<ExecuteAgentResult> - Simple result with usage and content
|
|
62
|
-
*/
|
|
63
|
-
export declare function executeQuery(params: ExecuteAgentSetParams): Promise<ExecuteAgentResult>;
|