@@ -43,7 +43,7 @@ export const listRunsTool: ToolConfig<DatabricksListRunsParams, DatabricksListRu
4343 type : 'number' ,
4444 required : false ,
4545 visibility : 'user-or-llm' ,
46- description : 'Maximum number of runs to return (range 1-25 , default 20)' ,
46+ description : 'Maximum number of runs to return (range 1-24 , default 20)' ,
4747 } ,
4848 offset : {
4949 type : 'number' ,
@@ -106,7 +106,12 @@ export const listRunsTool: ToolConfig<DatabricksListRunsParams, DatabricksListRu
106106 job_id ?: number
107107 run_name ?: string
108108 run_type ?: string
109- state ?: { life_cycle_state ?: string ; result_state ?: string ; state_message ?: string }
109+ state ?: {
110+ life_cycle_state ?: string
111+ result_state ?: string
112+ state_message ?: string
113+ user_cancelled_or_timedout ?: boolean
114+ }
110115 start_time ?: number
111116 end_time ?: number
112117 } ) => ( {
@@ -118,6 +123,7 @@ export const listRunsTool: ToolConfig<DatabricksListRunsParams, DatabricksListRu
118123 lifeCycleState : run . state ?. life_cycle_state ?? 'UNKNOWN' ,
119124 resultState : run . state ?. result_state ?? null ,
120125 stateMessage : run . state ?. state_message ?? '' ,
126+ userCancelledOrTimedout : run . state ?. user_cancelled_or_timedout ?? false ,
121127 } ,
122128 startTime : run . start_time ?? null ,
123129 endTime : run . end_time ?? null ,
@@ -152,14 +158,19 @@ export const listRunsTool: ToolConfig<DatabricksListRunsParams, DatabricksListRu
152158 lifeCycleState : {
153159 type : 'string' ,
154160 description :
155- 'Lifecycle state (QUEUED, PENDING, RUNNING, TERMINATING, TERMINATED, SKIPPED, INTERNAL_ERROR)' ,
161+ 'Lifecycle state (QUEUED, PENDING, RUNNING, TERMINATING, TERMINATED, SKIPPED, INTERNAL_ERROR, BLOCKED, WAITING_FOR_RETRY )' ,
156162 } ,
157163 resultState : {
158164 type : 'string' ,
159- description : 'Result state (SUCCESS, FAILED, TIMEDOUT, CANCELED)' ,
165+ description :
166+ 'Result state (SUCCESS, FAILED, TIMEDOUT, CANCELED, SUCCESS_WITH_FAILURES, UPSTREAM_FAILED, UPSTREAM_CANCELED, EXCLUDED)' ,
160167 optional : true ,
161168 } ,
162169 stateMessage : { type : 'string' , description : 'Descriptive state message' } ,
170+ userCancelledOrTimedout : {
171+ type : 'boolean' ,
172+ description : 'Whether the run was cancelled by user or timed out' ,
173+ } ,
163174 } ,
164175 } ,
165176 startTime : {
0 commit comments