Skip to content

Commit d2c014b

Browse files
committed
docs
1 parent a6384c6 commit d2c014b

13 files changed

Lines changed: 113 additions & 30 deletions

docs/classes/AgentValidationService.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ loggerService: any
2929
Logger service instance for logging validation operations and errors.
3030
Injected via DI, used for info-level logging controlled by GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO.
3131

32+
### completionSchemaService
33+
34+
```ts
35+
completionSchemaService: any
36+
```
37+
38+
Completion schema service instance for managing completion schemas.
39+
Injected via DI, used in validate method to check agent completions.
40+
Provides a registry of completion schemas for the swarm.
41+
3242
### toolValidationService
3343

3444
```ts

docs/classes/ClientCompute.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ constructor(params: IComputeParams<Compute>);
2121
params: IComputeParams<Compute>
2222
```
2323

24-
### __@DISPOSE_SLOT_FN_SYMBOL@3100
24+
### __@DISPOSE_SLOT_FN_SYMBOL@3106
2525

2626
```ts
27-
__@DISPOSE_SLOT_FN_SYMBOL@3100: any
27+
__@DISPOSE_SLOT_FN_SYMBOL@3106: any
2828
```
2929

30-
### __@GET_COMPUTE_DATA_FN_SYMBOL@3101
30+
### __@GET_COMPUTE_DATA_FN_SYMBOL@3107
3131

3232
```ts
33-
__@GET_COMPUTE_DATA_FN_SYMBOL@3101: any
33+
__@GET_COMPUTE_DATA_FN_SYMBOL@3107: any
3434
```
3535

3636
## Methods

docs/classes/ClientSwarm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Returns the current busy state of the swarm.
101101
Used to check if the swarm is currently processing an operation (e.g., waiting for output or switching agents).
102102
Supports debugging and flow control in client applications.
103103

104-
### __@SET_BUSY_FN@1558
104+
### __@SET_BUSY_FN@1563
105105

106106
```ts
107107
[SET_BUSY_FN](isBusy: boolean): void;

docs/classes/OutlineSchemaService.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ validateShallow: any
5050
```
5151

5252
Validates an outline schema for required properties and correct types.
53-
Ensures `outlineName` is a string, `getStructuredOutput` is a function, and `validations` (if present) is an array of valid validation functions or objects.
53+
Ensures `outlineName` is a string, `getOutlineHistory` is a function, and `validations` (if present) is an array of valid validation functions or objects.
5454
Logs validation attempts if `CC_LOGGER_ENABLE_INFO` is enabled.
5555

5656
### register

docs/classes/OutlineValidationService.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ loggerService: any
2626
The logger service instance for logging outline-related operations and errors.
2727
Injected via dependency injection using the TYPES.loggerService identifier.
2828

29+
### completionSchemaService
30+
31+
```ts
32+
completionSchemaService: any
33+
```
34+
35+
Completion schema service instance for managing completion schemas.
36+
Injected via DI, used in validate method to check outline completions.
37+
Provides a registry of completion schemas for the swarm.
38+
39+
### completionValidationService
40+
41+
```ts
42+
completionValidationService: any
43+
```
44+
45+
Completion validation service instance for validating completion configurations of outlines.
46+
Injected via DI, used in validate method to check outline completion.
47+
2948
### _outlineMap
3049

3150
```ts
@@ -44,6 +63,15 @@ addOutline: (outlineName: string, outlineSchema: IOutlineSchema<any, any>) => vo
4463
Registers a new outline schema with the given name.
4564
Logs the addition if info logging is enabled and throws an error if the outline name already exists.
4665

66+
### getOutlineList
67+
68+
```ts
69+
getOutlineList: () => string[]
70+
```
71+
72+
Retrieves a list of all registered outline names.
73+
Logs the retrieval operation if info logging is enabled.
74+
4775
### validate
4876

4977
```ts

docs/classes/SchemaUtils.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ constructor();
1616

1717
## Properties
1818

19-
### __@PERSIST_WRITE_SYMBOL@4268
19+
### __@PERSIST_WRITE_SYMBOL@4302
2020

2121
```ts
22-
__@PERSIST_WRITE_SYMBOL@4268: any
22+
__@PERSIST_WRITE_SYMBOL@4302: any
2323
```
2424

2525
### writeSessionMemory

docs/functions/addOutline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ group: docs
66
# addOutline
77

88
```ts
9-
declare function addOutline(outlineSchema: IOutlineSchema): string;
9+
declare function addOutline<Data extends IOutlineData = IOutlineData, Param extends IOutlineParam = IOutlineParam>(outlineSchema: IOutlineSchema<Data, Param>): string;
1010
```
1111

1212
Adds an outline schema to the swarm system by registering it with the outline validation and schema services.

docs/index.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,16 @@ group: docs
270270
- [IHistory](interfaces/IHistory.md)
271271
- [IHistoryParams](interfaces/IHistoryParams.md)
272272
- [IHistorySchema](interfaces/IHistorySchema.md)
273+
- [IOutlineFormat](interfaces/IOutlineFormat.md)
274+
- [IOutlineCallbacks](interfaces/IOutlineCallbacks.md)
275+
- [IOutlineMessage](interfaces/IOutlineMessage.md)
276+
- [IOutlineHistory](interfaces/IOutlineHistory.md)
277+
- [IOutlineArgs](interfaces/IOutlineArgs.md)
278+
- [IOutlineValidationArgs](interfaces/IOutlineValidationArgs.md)
279+
- [IOutlineValidationFn](interfaces/IOutlineValidationFn.md)
280+
- [IOutlineValidation](interfaces/IOutlineValidation.md)
281+
- [IOutlineResult](interfaces/IOutlineResult.md)
282+
- [IOutlineSchema](interfaces/IOutlineSchema.md)
273283
- [ICompletion](interfaces/ICompletion.md)
274284
- [ICompletionArgs](interfaces/ICompletionArgs.md)
275285
- [ICompletionCallbacks](interfaces/ICompletionCallbacks.md)
@@ -298,16 +308,6 @@ group: docs
298308
- [IOperatorParams](interfaces/IOperatorParams.md)
299309
- [IPipelineSchema](interfaces/IPipelineSchema.md)
300310
- [IPipelineCallbacks](interfaces/IPipelineCallbacks.md)
301-
- [IOutlineFormat](interfaces/IOutlineFormat.md)
302-
- [IOutlineCallbacks](interfaces/IOutlineCallbacks.md)
303-
- [IOutlineMessage](interfaces/IOutlineMessage.md)
304-
- [IOutlineHistory](interfaces/IOutlineHistory.md)
305-
- [IOutlineArgs](interfaces/IOutlineArgs.md)
306-
- [IOutlineValidationArgs](interfaces/IOutlineValidationArgs.md)
307-
- [IOutlineValidationFn](interfaces/IOutlineValidationFn.md)
308-
- [IOutlineValidation](interfaces/IOutlineValidation.md)
309-
- [IOutlineResult](interfaces/IOutlineResult.md)
310-
- [IOutlineSchema](interfaces/IOutlineSchema.md)
311311
- [ISchemaContext](interfaces/ISchemaContext.md)
312312
- [IAgentConnectionService](interfaces/IAgentConnectionService.md)
313313
- [IHistoryConnectionService](interfaces/IHistoryConnectionService.md)
@@ -373,6 +373,9 @@ group: docs
373373
- [THistoryInstanceCtor](types/THistoryInstanceCtor.md)
374374
- [THistoryPersistInstance](types/THistoryPersistInstance.md)
375375
- [THistoryMemoryInstance](types/THistoryMemoryInstance.md)
376+
- [IOutlineParam](types/IOutlineParam.md)
377+
- [IOutlineData](types/IOutlineData.md)
378+
- [OutlineName](types/OutlineName.md)
376379
- [CompletionName](types/CompletionName.md)
377380
- [WikiName](types/WikiName.md)
378381
- [MCPToolValue](types/MCPToolValue.md)
@@ -387,9 +390,6 @@ group: docs
387390
- [TExecutionContextService](types/TExecutionContextService.md)
388391
- [TPayloadContextService](types/TPayloadContextService.md)
389392
- [PipelineName](types/PipelineName.md)
390-
- [IOutlineParam](types/IOutlineParam.md)
391-
- [IOutlineData](types/IOutlineData.md)
392-
- [OutlineName](types/OutlineName.md)
393393
- [TSchemaContextService](types/TSchemaContextService.md)
394394
- [InternalKeys$b](types/InternalKeys$b.md)
395395
- [TAgentConnectionService](types/TAgentConnectionService.md)

docs/interfaces/ICompletionArgs.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,28 @@ Encapsulates context and inputs for generating a model response.
1616
clientId: string
1717
```
1818

19-
The unique ID of the client requesting the completion.
19+
The unique identifier for the client making the request.
20+
This is used to track the request and associate it with the correct client context.
21+
For outline completions, this being skipped
2022

2123
### agentName
2224

2325
```ts
2426
agentName: string
2527
```
2628

27-
The unique name of the agent associated with the completion request.
29+
The name of the agent for which the completion is requested.
30+
This is used to identify the agent context in which the completion will be generated.
31+
32+
### outlineName
33+
34+
```ts
35+
outlineName: string
36+
```
37+
38+
The outline used for json completions, if applicable.
39+
This is the name of the outline schema that defines the structure of the expected JSON response.
40+
Used to ensure that the completion adheres to the specified outline format.
2841

2942
### mode
3043

@@ -37,7 +50,7 @@ The source of the last message, indicating whether it originated from a tool or
3750
### messages
3851

3952
```ts
40-
messages: IModelMessage<object>[]
53+
messages: (IModelMessage<object> | IOutlineMessage)[]
4154
```
4255

4356
An array of model messages providing the conversation history or context for the completion.

docs/interfaces/ICompletionCallbacks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Provides hooks for post-completion actions.
1313
### onComplete
1414

1515
```ts
16-
onComplete: (args: ICompletionArgs, output: IModelMessage<object>) => void
16+
onComplete: (args: ICompletionArgs, output: IModelMessage<object> | IOutlineMessage) => void
1717
```
1818

1919
Optional callback triggered after a completion is successfully generated.

0 commit comments

Comments
 (0)