@smithery/sdk 1.7.3 → 1.7.4

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.
@@ -8,12 +8,13 @@ export declare function useMaxHeight(): number | undefined;
8
8
  export declare function useSafeArea(): import("./types.js").SafeArea | undefined;
9
9
  export declare function useLocale(): string;
10
10
  export declare function useToolInput<T = Record<string, unknown>>(): T | undefined;
11
- export declare function useToolOutput<T = unknown>(): {
11
+ export declare function useToolOutput<TStructured = unknown, TMeta = Record<string, unknown>>(): {
12
12
  content: {
13
13
  type: string;
14
14
  text: string;
15
15
  }[];
16
- structuredContent: T | undefined;
16
+ structuredContent: TStructured | undefined;
17
+ meta: TMeta | undefined;
17
18
  };
18
19
  export declare function useToolResponseMetadata<T = Record<string, unknown>>(): T | undefined;
19
20
  export declare function useCallTool<TArgs = Record<string, unknown>, TResult = unknown>(toolName: string): {
@@ -36,9 +36,11 @@ export function useToolInput() {
36
36
  }
37
37
  export function useToolOutput() {
38
38
  const output = useOpenAiGlobal("toolOutput");
39
+ const meta = useOpenAiGlobal("toolResponseMetadata");
39
40
  return {
40
41
  content: output?.content ?? [],
41
42
  structuredContent: output?.structuredContent,
43
+ meta: meta,
42
44
  };
43
45
  }
44
46
  export function useToolResponseMetadata() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithery/sdk",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "SDK to develop with Smithery",
5
5
  "type": "module",
6
6
  "repository": {