refactor(agents): narrow openai tool projection types · openclaw/openclaw@fafcdb5
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,14 +8,14 @@ type OpenAIToolDescriptor = {
|
8 | 8 | readonly parameters: unknown; |
9 | 9 | }; |
10 | 10 | |
11 | | -export type OpenAIProjectedTool = { |
| 11 | +type OpenAIProjectedTool = { |
12 | 12 | readonly toolIndex: number; |
13 | 13 | readonly name: string; |
14 | 14 | readonly description?: string; |
15 | 15 | readonly parameters: Record<string, unknown>; |
16 | 16 | }; |
17 | 17 | |
18 | | -export type OpenAIToolProjectionDiagnostic = { |
| 18 | +type OpenAIToolProjectionDiagnostic = { |
19 | 19 | readonly toolIndex: number; |
20 | 20 | readonly toolName?: string; |
21 | 21 | readonly violations: readonly string[]; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。