@@ -28,7 +28,6 @@ loggerService: any
2828
2929Logger service instance, injected via DI, for logging agent operations.
3030Used across all methods when GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true, consistent with DocService and PerfService logging patterns.
31- *
3231
3332### agentConnectionService
3433
@@ -38,7 +37,6 @@ agentConnectionService: any
3837
3938Agent connection service instance, injected via DI, for underlying agent operations.
4039Provides core functionality (e.g., getAgent, execute) called by public methods, aligning with ClientAgent’s execution model.
41- *
4240
4341### createAgentRef
4442
@@ -49,7 +47,6 @@ createAgentRef: (methodName: string, clientId: string, agentName: string) => Pro
4947Creates a reference to an agent for a specific client and method context.
5048Wraps AgentConnectionService.getAgent with MethodContextService for scoping, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
5149Used in ClientAgent (e.g., to initialize agent refs) and PerfService (e.g., to track agent usage via clientId).
52- * * *
5350
5451### execute
5552
@@ -60,7 +57,6 @@ execute: (input: string, mode: ExecutionMode, methodName: string, clientId: stri
6057Executes a command on the agent with a specified execution mode.
6158Wraps AgentConnectionService.execute with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
6259Mirrors ClientAgent’s EXECUTE_FN, triggering BusService events (e.g., commitExecutionBegin) and PerfService tracking (e.g., startExecution).
63- * * * * *
6460
6561### run
6662
@@ -71,7 +67,6 @@ run: (input: string, methodName: string, clientId: string, agentName: string) =>
7167Runs a stateless completion on the agent with the given input.
7268Wraps AgentConnectionService.run with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
7369Mirrors ClientAgent’s RUN_FN, used for quick completions without state persistence, tracked by PerfService.
74- * * * *
7570
7671### waitForOutput
7772
@@ -82,7 +77,6 @@ waitForOutput: (methodName: string, clientId: string, agentName: string) => Prom
8277Waits for the agent’s output after an operation.
8378Wraps AgentConnectionService.waitForOutput with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
8479Used in ClientAgent (e.g., post-execution output retrieval), complementing execute and run.
85- * * *
8680
8781### commitToolOutput
8882
@@ -93,7 +87,6 @@ commitToolOutput: (toolId: string, content: string, methodName: string, clientId
9387Commits tool output to the agent’s history, typically for OpenAI-style tool calls.
9488Wraps AgentConnectionService.commitToolOutput with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
9589Supports ClientAgent’s tool execution (e.g., TOOL_EXECUTOR), documented in DocService (e.g., tool schemas).
96- * * * * *
9790
9891### commitSystemMessage
9992
@@ -104,7 +97,6 @@ commitSystemMessage: (message: string, methodName: string, clientId: string, age
10497Commits a system message to the agent’s history.
10598Wraps AgentConnectionService.commitSystemMessage with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
10699Used in ClientAgent (e.g., system prompt updates), documented in DocService (e.g., system prompts).
107- * * * *
108100
109101### commitDeveloperMessage
110102
@@ -115,7 +107,6 @@ commitDeveloperMessage: (message: string, methodName: string, clientId: string,
115107Commits a developer message to the agent’s history.
116108Wraps AgentConnectionService.commitDeveloperMessage with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
117109Used for developer-specific messages, enhancing debugging and tracking in agent operations.
118- * * * *
119110
120111### commitToolRequest
121112
@@ -127,8 +118,6 @@ Commits a tool request to the agent’s history.
127118Wraps AgentConnectionService.commitToolRequest with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
128119Used for submitting tool requests, typically in scenarios where multiple tools are involved in agent operations.
129120
130- * * * *
131-
132121### commitAssistantMessage
133122
134123``` ts
@@ -138,7 +127,6 @@ commitAssistantMessage: (message: string, methodName: string, clientId: string,
138127Commits an assistant message to the agent’s history.
139128Wraps AgentConnectionService.commitAssistantMessage with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
140129Supports ClientAgent’s assistant responses, tracked by PerfService and documented in DocService.
141- * * * *
142130
143131### commitUserMessage
144132
@@ -149,7 +137,6 @@ commitUserMessage: (message: string, mode: ExecutionMode, methodName: string, cl
149137Commits a user message to the agent’s history without triggering an answer.
150138Wraps AgentConnectionService.commitUserMessage with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
151139Used in ClientAgent for user input logging, complementing execute and run.
152- * * * *
153140
154141### commitFlush
155142
@@ -160,7 +147,6 @@ commitFlush: (methodName: string, clientId: string, agentName: string) => Promis
160147Commits a flush of the agent’s history, clearing stored data.
161148Wraps AgentConnectionService.commitFlush with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
162149Supports ClientAgent session resets, tracked by PerfService for performance cleanup.
163- * * *
164150
165151### commitAgentChange
166152
@@ -171,7 +157,6 @@ commitAgentChange: (methodName: string, clientId: string, agentName: string) =>
171157Commits a change of agent to prevent subsequent tool executions.
172158Wraps AgentConnectionService.commitAgentChange with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
173159Used in ClientAgent to manage agent transitions, documented in DocService (e.g., agent dependencies).
174- * * *
175160
176161### commitStopTools
177162
@@ -182,7 +167,6 @@ commitStopTools: (methodName: string, clientId: string, agentName: string) => Pr
182167Commits a stop to prevent the next tool from being executed.
183168Wraps AgentConnectionService.commitStopTools with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
184169Supports ClientAgent’s tool execution control (e.g., TOOL_EXECUTOR interruption).
185- * * *
186170
187171### commitCancelOutput
188172
@@ -193,7 +177,6 @@ commitCancelOutput: (methodName: string, clientId: string, agentName: string) =>
193177Commits a stop to prevent the next tool from being executed.
194178Wraps AgentConnectionService.commitCancelOutput with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
195179Supports ClientAgent’s tool execution control (e.g., TOOL_EXECUTOR interruption).
196- * * *
197180
198181### dispose
199182
@@ -204,4 +187,3 @@ dispose: (methodName: string, clientId: string, agentName: string) => Promise<vo
204187Disposes of the agent, cleaning up resources.
205188Wraps AgentConnectionService.dispose with MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
206189Aligns with PerfService’s dispose (e.g., session cleanup) and BusService’s dispose (e.g., subscription cleanup).
207- * * *
0 commit comments