fix(timeouts): increased timeouts for function execution & agent (#2256)

This commit is contained in:
Waleed
2025-12-08 16:25:58 -08:00
committed by GitHub
parent 99e0b81233
commit 87084edbe6
4 changed files with 4 additions and 18 deletions

View File

@@ -158,8 +158,8 @@ export const HTTP = {
export const AGENT = {
DEFAULT_MODEL: 'claude-sonnet-4-5',
DEFAULT_FUNCTION_TIMEOUT: 5000,
REQUEST_TIMEOUT: 120000,
DEFAULT_FUNCTION_TIMEOUT: 600000, // 10 minutes for custom tool code execution
REQUEST_TIMEOUT: 600000, // 10 minutes for LLM API requests
CUSTOM_TOOL_PREFIX: 'custom_',
} as const

View File

@@ -1,10 +1,7 @@
/**
* Execution timeout constants
*
* These constants define the timeout values for code execution.
* - DEFAULT_EXECUTION_TIMEOUT_MS: The default timeout for executing user code (3 minutes)
* - MAX_EXECUTION_DURATION: The maximum duration for the API route (adds 30s buffer for overhead)
* DEFAULT_EXECUTION_TIMEOUT_MS: The default timeout for executing user code (10 minutes)
*/
export const DEFAULT_EXECUTION_TIMEOUT_MS = 180000 // 3 minutes (180 seconds)
export const MAX_EXECUTION_DURATION = 210 // 3.5 minutes (210 seconds) - includes buffer for sandbox creation
export const DEFAULT_EXECUTION_TIMEOUT_MS = 600000 // 10 minutes (600 seconds)

View File

@@ -40,15 +40,6 @@ export const requestTool: ToolConfig<RequestParams, RequestResponse> = {
type: 'object',
description: 'Form data to send (will set appropriate Content-Type)',
},
timeout: {
type: 'number',
default: 10000,
description: 'Request timeout in milliseconds',
},
validateStatus: {
type: 'object',
description: 'Custom status validation function',
},
},
request: {

View File

@@ -8,8 +8,6 @@ export interface RequestParams {
params?: TableRow[]
pathParams?: Record<string, string>
formData?: Record<string, string | Blob>
timeout?: number
validateStatus?: (status: number) => boolean
}
export interface RequestResponse extends ToolResponse {