@yourgpt/llm-sdk 2.1.0 → 2.1.2
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/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/index.js +34 -1
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/index.mjs +34 -1
- package/dist/adapters/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -2
- package/dist/index.mjs.map +1 -1
- package/dist/providers/anthropic/index.d.mts +1 -1
- package/dist/providers/anthropic/index.d.ts +1 -1
- package/dist/providers/anthropic/index.js +66 -31
- package/dist/providers/anthropic/index.js.map +1 -1
- package/dist/providers/anthropic/index.mjs +66 -31
- package/dist/providers/anthropic/index.mjs.map +1 -1
- package/dist/providers/azure/index.d.mts +1 -1
- package/dist/providers/azure/index.d.ts +1 -1
- package/dist/providers/google/index.d.mts +1 -1
- package/dist/providers/google/index.d.ts +1 -1
- package/dist/providers/ollama/index.d.mts +2 -2
- package/dist/providers/ollama/index.d.ts +2 -2
- package/dist/providers/openai/index.d.mts +1 -1
- package/dist/providers/openai/index.d.ts +1 -1
- package/dist/providers/openrouter/index.d.mts +1 -1
- package/dist/providers/openrouter/index.d.ts +1 -1
- package/dist/providers/xai/index.d.mts +1 -1
- package/dist/providers/xai/index.d.ts +1 -1
- package/dist/{types-C_f95PKp.d.mts → types-D20jKwJW.d.mts} +11 -0
- package/dist/{types-C_f95PKp.d.ts → types-D20jKwJW.d.ts} +11 -0
- package/package.json +1 -1
|
@@ -402,6 +402,8 @@ interface ActionStartEvent extends BaseEvent {
|
|
|
402
402
|
type: "action:start";
|
|
403
403
|
id: string;
|
|
404
404
|
name: string;
|
|
405
|
+
/** Whether this tool should be hidden from UI */
|
|
406
|
+
hidden?: boolean;
|
|
405
407
|
}
|
|
406
408
|
/**
|
|
407
409
|
* Action arguments (streaming)
|
|
@@ -436,6 +438,8 @@ interface ToolCallInfo {
|
|
|
436
438
|
id: string;
|
|
437
439
|
name: string;
|
|
438
440
|
args: Record<string, unknown>;
|
|
441
|
+
/** Whether this tool should be hidden from UI */
|
|
442
|
+
hidden?: boolean;
|
|
439
443
|
}
|
|
440
444
|
/**
|
|
441
445
|
* Assistant message with tool calls
|
|
@@ -687,6 +691,13 @@ interface ToolDefinition<TParams = Record<string, unknown>> {
|
|
|
687
691
|
handler?: (params: TParams, context?: ToolContext) => unknown | Promise<unknown>;
|
|
688
692
|
render?: (props: unknown) => unknown;
|
|
689
693
|
available?: boolean;
|
|
694
|
+
/**
|
|
695
|
+
* Hide this tool's execution from the chat UI.
|
|
696
|
+
* When true, tool calls and results won't be displayed to the user,
|
|
697
|
+
* but the tool will still execute normally.
|
|
698
|
+
* @default false
|
|
699
|
+
*/
|
|
700
|
+
hidden?: boolean;
|
|
690
701
|
needsApproval?: boolean;
|
|
691
702
|
approvalMessage?: string | ((params: TParams) => string);
|
|
692
703
|
/** AI response mode for this tool (none, brief, full) */
|
|
@@ -402,6 +402,8 @@ interface ActionStartEvent extends BaseEvent {
|
|
|
402
402
|
type: "action:start";
|
|
403
403
|
id: string;
|
|
404
404
|
name: string;
|
|
405
|
+
/** Whether this tool should be hidden from UI */
|
|
406
|
+
hidden?: boolean;
|
|
405
407
|
}
|
|
406
408
|
/**
|
|
407
409
|
* Action arguments (streaming)
|
|
@@ -436,6 +438,8 @@ interface ToolCallInfo {
|
|
|
436
438
|
id: string;
|
|
437
439
|
name: string;
|
|
438
440
|
args: Record<string, unknown>;
|
|
441
|
+
/** Whether this tool should be hidden from UI */
|
|
442
|
+
hidden?: boolean;
|
|
439
443
|
}
|
|
440
444
|
/**
|
|
441
445
|
* Assistant message with tool calls
|
|
@@ -687,6 +691,13 @@ interface ToolDefinition<TParams = Record<string, unknown>> {
|
|
|
687
691
|
handler?: (params: TParams, context?: ToolContext) => unknown | Promise<unknown>;
|
|
688
692
|
render?: (props: unknown) => unknown;
|
|
689
693
|
available?: boolean;
|
|
694
|
+
/**
|
|
695
|
+
* Hide this tool's execution from the chat UI.
|
|
696
|
+
* When true, tool calls and results won't be displayed to the user,
|
|
697
|
+
* but the tool will still execute normally.
|
|
698
|
+
* @default false
|
|
699
|
+
*/
|
|
700
|
+
hidden?: boolean;
|
|
690
701
|
needsApproval?: boolean;
|
|
691
702
|
approvalMessage?: string | ((params: TParams) => string);
|
|
692
703
|
/** AI response mode for this tool (none, brief, full) */
|