|
27 | 27 | AgentIntegrationToolResourceConfig, |
28 | 28 | AgentInternalBatchTransformToolProperties, |
29 | 29 | AgentInternalDeepRagToolProperties, |
| 30 | + AgentInternalHttpRequestToolProperties, |
30 | 31 | AgentInternalToolResourceConfig, |
31 | 32 | AgentInternalToolType, |
32 | 33 | AgentIxpExtractionResourceConfig, |
@@ -3157,6 +3158,24 @@ def test_case_insensitive_enums(self): |
3157 | 3158 | "description": "Test batch transform tool", |
3158 | 3159 | "isEnabled": True, |
3159 | 3160 | }, |
| 3161 | + { |
| 3162 | + "$resourceType": "Tool", |
| 3163 | + "type": "Internal", |
| 3164 | + "inputSchema": { |
| 3165 | + "type": "object", |
| 3166 | + "properties": {}, |
| 3167 | + }, |
| 3168 | + "outputSchema": {"type": "object", "properties": {}}, |
| 3169 | + "arguments": {}, |
| 3170 | + "settings": {"timeout": 0, "maxAttempts": 0, "retryDelay": 0}, |
| 3171 | + "properties": { |
| 3172 | + "toolType": "Http-Request", |
| 3173 | + }, |
| 3174 | + "argumentProperties": {}, |
| 3175 | + "name": "HTTP Request Tool", |
| 3176 | + "description": "Test http request tool", |
| 3177 | + "isEnabled": True, |
| 3178 | + }, |
3160 | 3179 | ], |
3161 | 3180 | "guardrails": [ |
3162 | 3181 | { |
@@ -3279,6 +3298,15 @@ def test_case_insensitive_enums(self): |
3279 | 3298 | == BatchTransformWebSearchGrounding.ENABLED |
3280 | 3299 | ) |
3281 | 3300 |
|
| 3301 | + http_request_tool = config.resources[5] |
| 3302 | + assert isinstance(http_request_tool, AgentInternalToolResourceConfig) |
| 3303 | + assert isinstance( |
| 3304 | + http_request_tool.properties, AgentInternalHttpRequestToolProperties |
| 3305 | + ) |
| 3306 | + assert ( |
| 3307 | + http_request_tool.properties.tool_type == AgentInternalToolType.HTTP_REQUEST |
| 3308 | + ) |
| 3309 | + |
3282 | 3310 | assert config.guardrails is not None |
3283 | 3311 | custom_guardrail = config.guardrails[0] |
3284 | 3312 | assert isinstance(custom_guardrail, AgentCustomGuardrail) |
|
0 commit comments