@fugood/bricks-project 2.21.4 → 2.21.5
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/package.json +1 -1
- package/types/generators.ts +15 -3
- package/utils/event-props.ts +2 -0
package/package.json
CHANGED
package/types/generators.ts
CHANGED
|
@@ -4497,6 +4497,8 @@ Default property:
|
|
|
4497
4497
|
isListening?: () => Data
|
|
4498
4498
|
/* Last error of HTTP server */
|
|
4499
4499
|
lastError?: () => Data
|
|
4500
|
+
/* MCP server endpoint URL */
|
|
4501
|
+
endpoint?: () => Data
|
|
4500
4502
|
/* Connected remotes (Session ID) */
|
|
4501
4503
|
connectedRemotes?: () => Data
|
|
4502
4504
|
/* Last resource request ({ name: string, uri: string, params: object }) */
|
|
@@ -4525,6 +4527,7 @@ export type GeneratorMCPServer = Generator &
|
|
|
4525
4527
|
outlet:
|
|
4526
4528
|
| 'isListening'
|
|
4527
4529
|
| 'lastError'
|
|
4530
|
+
| 'endpoint'
|
|
4528
4531
|
| 'connectedRemotes'
|
|
4529
4532
|
| 'lastResourceRequest'
|
|
4530
4533
|
| 'lastToolCall'
|
|
@@ -6173,6 +6176,7 @@ Default property:
|
|
|
6173
6176
|
"useMmap": true,
|
|
6174
6177
|
"cacheKType": "f16",
|
|
6175
6178
|
"cacheVType": "f16",
|
|
6179
|
+
"ctxShift": true,
|
|
6176
6180
|
"transformScriptEnabled": false,
|
|
6177
6181
|
"transformScriptCode": "\/\* Global variable: inputs = { prompt, messages, variables } \*\/\nreturn inputs.prompt",
|
|
6178
6182
|
"transformScriptVariables": {},
|
|
@@ -6258,6 +6262,8 @@ Default property:
|
|
|
6258
6262
|
cacheKType?: 'f16' | 'f32' | 'q8_0' | 'q4_0' | 'q4_1' | 'iq4_nl' | 'q5_0' | 'q5_1' | DataLink
|
|
6259
6263
|
/* KV cache data type for the V (Default: f16) */
|
|
6260
6264
|
cacheVType?: 'f16' | 'f32' | 'q8_0' | 'q4_0' | 'q4_1' | 'iq4_nl' | 'q5_0' | 'q5_1' | DataLink
|
|
6265
|
+
/* Enable context shift */
|
|
6266
|
+
ctxShift?: boolean | DataLink
|
|
6261
6267
|
/* Enable Transform Script for processing the prompt */
|
|
6262
6268
|
transformScriptEnabled?: boolean | DataLink
|
|
6263
6269
|
/* Code of Transform Script */
|
|
@@ -6276,7 +6282,9 @@ Default property:
|
|
|
6276
6282
|
sessionRemain?: number | DataLink
|
|
6277
6283
|
/* TODO:loran_gqarms_norm_epsrope_freq_baserope_freq_scale */
|
|
6278
6284
|
completionMode?: 'auto' | 'chat' | 'text' | DataLink
|
|
6279
|
-
/* Tools for chat mode
|
|
6285
|
+
/* Tools for chat mode using OpenAI-compatible function calling format
|
|
6286
|
+
Format: Array of objects with {type, function: {name, description, parameters}} structure
|
|
6287
|
+
See: https://platform.openai.com/docs/guides/function-calling */
|
|
6280
6288
|
completionTools?: {} | DataLink
|
|
6281
6289
|
/* Enable parallel tool calls */
|
|
6282
6290
|
completionParallelToolCalls?: boolean | DataLink
|
|
@@ -6533,7 +6541,9 @@ Default property:
|
|
|
6533
6541
|
stopWords?: Array<string | DataLink> | DataLink
|
|
6534
6542
|
/* Tool call parser */
|
|
6535
6543
|
toolCallParser?: 'llama3_json' | 'mistral' | DataLink
|
|
6536
|
-
/* Tools for chat mode
|
|
6544
|
+
/* Tools for chat mode using OpenAI-compatible function calling format
|
|
6545
|
+
Format: Array of objects with {type, function: {name, description, parameters}} structure
|
|
6546
|
+
See: https://platform.openai.com/docs/guides/function-calling */
|
|
6537
6547
|
tools?: {} | DataLink
|
|
6538
6548
|
/* Tool choice for chat mode */
|
|
6539
6549
|
toolChoice?: 'none' | 'auto' | 'required' | DataLink
|
|
@@ -6713,7 +6723,9 @@ Default property:
|
|
|
6713
6723
|
}
|
|
6714
6724
|
>
|
|
6715
6725
|
| DataLink
|
|
6716
|
-
/* Tools for chat mode
|
|
6726
|
+
/* Tools for chat mode following OpenAI function calling format
|
|
6727
|
+
Format: Array of objects with {type, function: {name, description, parameters}} structure
|
|
6728
|
+
See: https://platform.openai.com/docs/guides/function-calling */
|
|
6717
6729
|
completionTools?: {} | DataLink
|
|
6718
6730
|
/* Enable parallel tool calls */
|
|
6719
6731
|
completionParallelToolCalls?: boolean | DataLink
|
package/utils/event-props.ts
CHANGED
|
@@ -785,6 +785,8 @@ export const templateEventPropsMap = {
|
|
|
785
785
|
'GENERATOR_LLM_COMPLETION_RESULT', // type: string
|
|
786
786
|
'GENERATOR_LLM_COMPLETION_TOOL_CALLS', // type: array
|
|
787
787
|
'GENERATOR_LLM_COMPLETION_FULL_CONTEXT', // type: string
|
|
788
|
+
'GENERATOR_LLM_COMPLETION_IS_CONTEXT_FULL', // type: bool
|
|
789
|
+
'GENERATOR_LLM_COMPLETION_IS_TRUNCATED', // type: bool
|
|
788
790
|
'GENERATOR_LLM_COMPLETION_RESULT_DETAILS', // type: object
|
|
789
791
|
],
|
|
790
792
|
onCompletionFunctionCall: [
|