psadk 1.4.6 → 1.4.8

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.
@@ -12,6 +12,7 @@ export interface PSAgentConfig {
12
12
  model?: string;
13
13
  llm_config?: {
14
14
  max_completion_tokens?: number;
15
+ context_window?: number;
15
16
  max_specific_tool_calls?: number;
16
17
  reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high';
17
18
  temperature?: number;
@@ -34,5 +35,32 @@ export interface PSAgentConfig {
34
35
  run_evaluator: boolean;
35
36
  reference_correlation_ids: string[] | null;
36
37
  };
38
+ /** Run the agent in-process via agent-core instead of the PS API. Default: false. */
39
+ local?: boolean;
40
+ /** Callback invoked for each streamed event during local execution. */
41
+ onEvent?: (event: LocalAgentEvent) => void;
37
42
  port?: number;
38
43
  }
44
+ /**
45
+ * Event emitted during local agent execution (local: true mode).
46
+ * Shape mirrors the remote event polling format so execute() can share a single handler path.
47
+ */
48
+ export interface LocalAgentEvent {
49
+ /** Current agent status */
50
+ agentStatus: 'pending' | 'in-progress' | 'waiting' | 'completed' | 'failed';
51
+ /** Unix timestamp (ms) when the event was generated */
52
+ timestamp: number;
53
+ /** Tool name — present when agentStatus is 'waiting' */
54
+ tool?: string;
55
+ /** Tool input — present when agentStatus is 'waiting' */
56
+ toolInput?: {
57
+ request_body: Record<string, any>;
58
+ };
59
+ /** Agent output — present when agentStatus is 'completed' */
60
+ output?: {
61
+ response: string;
62
+ [key: string]: any;
63
+ };
64
+ /** Error or status message — present when agentStatus is 'failed' or 'in-progress' */
65
+ message?: string;
66
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "psadk",
3
3
  "email": "rakesh.ravuri@publicissapient.com",
4
- "version": "1.4.6",
4
+ "version": "1.4.8",
5
5
  "description": "ps adk adapter",
6
6
  "main": "build/main/index.js",
7
7
  "typings": "build/main/index.d.ts",
@@ -142,4 +142,4 @@
142
142
  "**/*.spec.js"
143
143
  ]
144
144
  }
145
- }
145
+ }