You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param dependencies - Optional array of dependencies
39
+
* @param toolUseId - Optional custom toolUseId, will be generated if not provided
40
+
*
41
+
* Requirements: 1.1 - WHEN I call `codebolt.notify.agent.StartSubagentTaskRequestNotify()` THEN the system SHALL send a StartSubagentTaskRequestNotification via WebSocket
* @param content - The response content (string or any object)
78
+
* @param isError - Whether this is an error response (default: false)
79
+
* @param toolUseId - Optional custom toolUseId, will be generated if not provided
80
+
*
81
+
* Requirements: 1.2 - WHEN I call `codebolt.notify.agent.StartSubagentTaskResponseNotify()` THEN the system SHALL send a StartSubagentTaskResponseNotification via WebSocket
82
+
*/
83
+
exportfunctionStartSubagentTaskResponseNotify(
84
+
content: string|any,
85
+
isError: boolean=false,
86
+
toolUseId?: string
87
+
): void{
88
+
// Validate content is provided
89
+
if(content===null||content===undefined){
90
+
console.error('[NotificationFunctions] Content is required for agent.StartSubagentTaskResponseNotify');
* Notifies that a subagent task has been completed
109
+
*
110
+
* @param parentAgentId - The parent agent ID
111
+
* @param subagentId - The subagent ID
112
+
* @param taskId - The task ID
113
+
* @param result - The task result
114
+
* @param status - The task status
115
+
* @param toolUseId - Optional custom toolUseId, will be generated if not provided
116
+
*
117
+
* Requirements: 1.3 - WHEN I call `codebolt.notify.agent.SubagentTaskCompletedNotify()` THEN the system SHALL send a SubagentTaskCompletedNotification via WebSocket
118
+
*/
119
+
exportfunctionSubagentTaskCompletedNotify(
120
+
parentAgentId: string,
121
+
subagentId: string,
122
+
taskId: string,
123
+
result: any,
124
+
status: string,
125
+
toolUseId?: string
126
+
): void{
127
+
// Validate required fields
128
+
if(!validateRequiredFields({ parentAgentId, subagentId, taskId, result, status },['parentAgentId','subagentId','taskId','result','status'],'agent.SubagentTaskCompletedNotify')){
* @param timeout - Optional timeout in milliseconds
39
+
* @param toolUseId - Optional custom toolUseId, will be generated if not provided
40
+
*
41
+
* Requirements: 2.1 - WHEN I call `codebolt.notify.browser.WebFetchRequestNotify()` THEN the system SHALL send a WebFetchRequestNotification via WebSocket
* @param content - The response content (string or any object)
78
+
* @param isError - Whether this is an error response (default: false)
79
+
* @param toolUseId - Optional custom toolUseId, will be generated if not provided
80
+
* @param data - Optional response data including status, statusText, headers, and url
81
+
*
82
+
* Requirements: 2.2 - WHEN I call `codebolt.notify.browser.WebFetchResponseNotify()` THEN the system SHALL send a WebFetchResponseNotification via WebSocket
83
+
*/
84
+
exportfunctionWebFetchResponseNotify(
85
+
content: string|any,
86
+
isError: boolean=false,
87
+
toolUseId?: string,
88
+
data?: WebFetchResponseNotification['data']
89
+
): void{
90
+
// Validate content is provided
91
+
if(content===null||content===undefined){
92
+
console.error('[NotificationFunctions] Content is required for browser.WebFetchResponseNotify');
* @param maxResults - Optional maximum number of results
115
+
* @param searchEngine - Optional search engine to use
116
+
* @param filters - Optional search filters
117
+
* @param toolUseId - Optional custom toolUseId, will be generated if not provided
118
+
*
119
+
* Requirements: 2.3 - WHEN I call `codebolt.notify.browser.WebSearchRequestNotify()` THEN the system SHALL send a WebSearchRequestNotification via WebSocket
* @param content - The response content (string or any object)
154
+
* @param isError - Whether this is an error response (default: false)
155
+
* @param toolUseId - Optional custom toolUseId, will be generated if not provided
156
+
* @param data - Optional response data including results, totalResults, and searchTime
157
+
*
158
+
* Requirements: 2.4 - WHEN I call `codebolt.notify.browser.WebSearchResponseNotify()` THEN the system SHALL send a WebSearchResponseNotification via WebSocket
159
+
*/
160
+
exportfunctionWebSearchResponseNotify(
161
+
content: string|any,
162
+
isError: boolean=false,
163
+
toolUseId?: string,
164
+
data?: WebSearchResponseNotification['data']
165
+
): void{
166
+
// Validate content is provided
167
+
if(content===null||content===undefined){
168
+
console.error('[NotificationFunctions] Content is required for browser.WebSearchResponseNotify');
0 commit comments