fix(test): 修复测试中的类型引用
- 将 ClaudeCustomToolSpec 改为 CustomToolSpec - 与 claude_types.go 中的实际类型定义保持一致
This commit is contained in:
@@ -96,7 +96,7 @@ func TestBuildTools_CustomTypeTools(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Type: "custom",
|
Type: "custom",
|
||||||
Name: "mcp_tool",
|
Name: "mcp_tool",
|
||||||
Custom: &ClaudeCustomToolSpec{
|
Custom: &CustomToolSpec{
|
||||||
Description: "MCP tool description",
|
Description: "MCP tool description",
|
||||||
InputSchema: map[string]any{
|
InputSchema: map[string]any{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -121,7 +121,7 @@ func TestBuildTools_CustomTypeTools(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Type: "custom",
|
Type: "custom",
|
||||||
Name: "custom_tool",
|
Name: "custom_tool",
|
||||||
Custom: &ClaudeCustomToolSpec{
|
Custom: &CustomToolSpec{
|
||||||
Description: "Custom tool",
|
Description: "Custom tool",
|
||||||
InputSchema: map[string]any{"type": "object"},
|
InputSchema: map[string]any{"type": "object"},
|
||||||
},
|
},
|
||||||
@@ -148,7 +148,7 @@ func TestBuildTools_CustomTypeTools(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Type: "custom",
|
Type: "custom",
|
||||||
Name: "invalid_custom",
|
Name: "invalid_custom",
|
||||||
Custom: &ClaudeCustomToolSpec{
|
Custom: &CustomToolSpec{
|
||||||
Description: "Invalid",
|
Description: "Invalid",
|
||||||
// InputSchema 为 nil
|
// InputSchema 为 nil
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user