feat(captain): validate custom tools
This commit is contained in:
@@ -187,7 +187,7 @@ func TestCaptainCustomToolHandler_ChatwootToolPayloadsAndScope(t *testing.T) {
|
||||
"endpoint_url": "https://example.com/orders",
|
||||
"http_method": "POST",
|
||||
"auth_type": "none",
|
||||
"param_schema": []map[string]any{{"name": "order_id", "type": "string", "required": true}},
|
||||
"param_schema": []map[string]any{{"name": "order_id", "type": "string", "description": "Order ID", "required": true}},
|
||||
"request_template": "{\"id\":\"{{.order_id}}\"}",
|
||||
}}
|
||||
w := captainResourceJSONRequest(t, router, http.MethodPost, basePath+"/", body)
|
||||
|
||||
Reference in New Issue
Block a user