
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `Tool` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model Tool
 * 
 */
export type ToolModel = runtime.Types.Result.DefaultSelection<Prisma.$ToolPayload>

export type AggregateTool = {
  _count: ToolCountAggregateOutputType | null
  _avg: ToolAvgAggregateOutputType | null
  _sum: ToolSumAggregateOutputType | null
  _min: ToolMinAggregateOutputType | null
  _max: ToolMaxAggregateOutputType | null
}

export type ToolAvgAggregateOutputType = {
  response_timeout_secs: number | null
}

export type ToolSumAggregateOutputType = {
  response_timeout_secs: number | null
}

export type ToolMinAggregateOutputType = {
  toolId: string | null
  organizationId: string | null
  name: string | null
  description: string | null
  disable_interruptions: boolean | null
  force_pre_tool_speech: boolean | null
  api_url: string | null
  api_method: string | null
  response_timeout_secs: number | null
  createdAt: Date | null
  updatedAt: Date | null
  userId: string | null
}

export type ToolMaxAggregateOutputType = {
  toolId: string | null
  organizationId: string | null
  name: string | null
  description: string | null
  disable_interruptions: boolean | null
  force_pre_tool_speech: boolean | null
  api_url: string | null
  api_method: string | null
  response_timeout_secs: number | null
  createdAt: Date | null
  updatedAt: Date | null
  userId: string | null
}

export type ToolCountAggregateOutputType = {
  toolId: number
  organizationId: number
  name: number
  description: number
  disable_interruptions: number
  force_pre_tool_speech: number
  api_url: number
  api_method: number
  api_headers: number
  api_body: number
  api_query_params: number
  api_path_params: number
  response_timeout_secs: number
  dynamic_variables: number
  createdAt: number
  updatedAt: number
  userId: number
  _all: number
}


export type ToolAvgAggregateInputType = {
  response_timeout_secs?: true
}

export type ToolSumAggregateInputType = {
  response_timeout_secs?: true
}

export type ToolMinAggregateInputType = {
  toolId?: true
  organizationId?: true
  name?: true
  description?: true
  disable_interruptions?: true
  force_pre_tool_speech?: true
  api_url?: true
  api_method?: true
  response_timeout_secs?: true
  createdAt?: true
  updatedAt?: true
  userId?: true
}

export type ToolMaxAggregateInputType = {
  toolId?: true
  organizationId?: true
  name?: true
  description?: true
  disable_interruptions?: true
  force_pre_tool_speech?: true
  api_url?: true
  api_method?: true
  response_timeout_secs?: true
  createdAt?: true
  updatedAt?: true
  userId?: true
}

export type ToolCountAggregateInputType = {
  toolId?: true
  organizationId?: true
  name?: true
  description?: true
  disable_interruptions?: true
  force_pre_tool_speech?: true
  api_url?: true
  api_method?: true
  api_headers?: true
  api_body?: true
  api_query_params?: true
  api_path_params?: true
  response_timeout_secs?: true
  dynamic_variables?: true
  createdAt?: true
  updatedAt?: true
  userId?: true
  _all?: true
}

export type ToolAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Tool to aggregate.
   */
  where?: Prisma.ToolWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Tools to fetch.
   */
  orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ToolWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Tools from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Tools.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned Tools
  **/
  _count?: true | ToolCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ToolAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ToolSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ToolMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ToolMaxAggregateInputType
}

export type GetToolAggregateType<T extends ToolAggregateArgs> = {
      [P in keyof T & keyof AggregateTool]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateTool[P]>
    : Prisma.GetScalarType<T[P], AggregateTool[P]>
}




export type ToolGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ToolWhereInput
  orderBy?: Prisma.ToolOrderByWithAggregationInput | Prisma.ToolOrderByWithAggregationInput[]
  by: Prisma.ToolScalarFieldEnum[] | Prisma.ToolScalarFieldEnum
  having?: Prisma.ToolScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ToolCountAggregateInputType | true
  _avg?: ToolAvgAggregateInputType
  _sum?: ToolSumAggregateInputType
  _min?: ToolMinAggregateInputType
  _max?: ToolMaxAggregateInputType
}

export type ToolGroupByOutputType = {
  toolId: string
  organizationId: string
  name: string
  description: string
  disable_interruptions: boolean
  force_pre_tool_speech: boolean
  api_url: string
  api_method: string | null
  api_headers: runtime.JsonValue | null
  api_body: runtime.JsonValue | null
  api_query_params: runtime.JsonValue | null
  api_path_params: runtime.JsonValue | null
  response_timeout_secs: number | null
  dynamic_variables: runtime.JsonValue | null
  createdAt: Date
  updatedAt: Date
  userId: string | null
  _count: ToolCountAggregateOutputType | null
  _avg: ToolAvgAggregateOutputType | null
  _sum: ToolSumAggregateOutputType | null
  _min: ToolMinAggregateOutputType | null
  _max: ToolMaxAggregateOutputType | null
}

export type GetToolGroupByPayload<T extends ToolGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<ToolGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof ToolGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], ToolGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], ToolGroupByOutputType[P]>
      }
    >
  >



export type ToolWhereInput = {
  AND?: Prisma.ToolWhereInput | Prisma.ToolWhereInput[]
  OR?: Prisma.ToolWhereInput[]
  NOT?: Prisma.ToolWhereInput | Prisma.ToolWhereInput[]
  toolId?: Prisma.StringFilter<"Tool"> | string
  organizationId?: Prisma.StringFilter<"Tool"> | string
  name?: Prisma.StringFilter<"Tool"> | string
  description?: Prisma.StringFilter<"Tool"> | string
  disable_interruptions?: Prisma.BoolFilter<"Tool"> | boolean
  force_pre_tool_speech?: Prisma.BoolFilter<"Tool"> | boolean
  api_url?: Prisma.StringFilter<"Tool"> | string
  api_method?: Prisma.StringNullableFilter<"Tool"> | string | null
  api_headers?: Prisma.JsonNullableFilter<"Tool">
  api_body?: Prisma.JsonNullableFilter<"Tool">
  api_query_params?: Prisma.JsonNullableFilter<"Tool">
  api_path_params?: Prisma.JsonNullableFilter<"Tool">
  response_timeout_secs?: Prisma.IntNullableFilter<"Tool"> | number | null
  dynamic_variables?: Prisma.JsonNullableFilter<"Tool">
  createdAt?: Prisma.DateTimeFilter<"Tool"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Tool"> | Date | string
  userId?: Prisma.StringNullableFilter<"Tool"> | string | null
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  agent?: Prisma.AgentListRelationFilter
}

export type ToolOrderByWithRelationInput = {
  toolId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  disable_interruptions?: Prisma.SortOrder
  force_pre_tool_speech?: Prisma.SortOrder
  api_url?: Prisma.SortOrder
  api_method?: Prisma.SortOrderInput | Prisma.SortOrder
  api_headers?: Prisma.SortOrderInput | Prisma.SortOrder
  api_body?: Prisma.SortOrderInput | Prisma.SortOrder
  api_query_params?: Prisma.SortOrderInput | Prisma.SortOrder
  api_path_params?: Prisma.SortOrderInput | Prisma.SortOrder
  response_timeout_secs?: Prisma.SortOrderInput | Prisma.SortOrder
  dynamic_variables?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  organization?: Prisma.OrganizationOrderByWithRelationInput
  user?: Prisma.UserOrderByWithRelationInput
  agent?: Prisma.AgentOrderByRelationAggregateInput
}

export type ToolWhereUniqueInput = Prisma.AtLeast<{
  toolId?: string
  AND?: Prisma.ToolWhereInput | Prisma.ToolWhereInput[]
  OR?: Prisma.ToolWhereInput[]
  NOT?: Prisma.ToolWhereInput | Prisma.ToolWhereInput[]
  organizationId?: Prisma.StringFilter<"Tool"> | string
  name?: Prisma.StringFilter<"Tool"> | string
  description?: Prisma.StringFilter<"Tool"> | string
  disable_interruptions?: Prisma.BoolFilter<"Tool"> | boolean
  force_pre_tool_speech?: Prisma.BoolFilter<"Tool"> | boolean
  api_url?: Prisma.StringFilter<"Tool"> | string
  api_method?: Prisma.StringNullableFilter<"Tool"> | string | null
  api_headers?: Prisma.JsonNullableFilter<"Tool">
  api_body?: Prisma.JsonNullableFilter<"Tool">
  api_query_params?: Prisma.JsonNullableFilter<"Tool">
  api_path_params?: Prisma.JsonNullableFilter<"Tool">
  response_timeout_secs?: Prisma.IntNullableFilter<"Tool"> | number | null
  dynamic_variables?: Prisma.JsonNullableFilter<"Tool">
  createdAt?: Prisma.DateTimeFilter<"Tool"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Tool"> | Date | string
  userId?: Prisma.StringNullableFilter<"Tool"> | string | null
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  agent?: Prisma.AgentListRelationFilter
}, "toolId">

export type ToolOrderByWithAggregationInput = {
  toolId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  disable_interruptions?: Prisma.SortOrder
  force_pre_tool_speech?: Prisma.SortOrder
  api_url?: Prisma.SortOrder
  api_method?: Prisma.SortOrderInput | Prisma.SortOrder
  api_headers?: Prisma.SortOrderInput | Prisma.SortOrder
  api_body?: Prisma.SortOrderInput | Prisma.SortOrder
  api_query_params?: Prisma.SortOrderInput | Prisma.SortOrder
  api_path_params?: Prisma.SortOrderInput | Prisma.SortOrder
  response_timeout_secs?: Prisma.SortOrderInput | Prisma.SortOrder
  dynamic_variables?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.ToolCountOrderByAggregateInput
  _avg?: Prisma.ToolAvgOrderByAggregateInput
  _max?: Prisma.ToolMaxOrderByAggregateInput
  _min?: Prisma.ToolMinOrderByAggregateInput
  _sum?: Prisma.ToolSumOrderByAggregateInput
}

export type ToolScalarWhereWithAggregatesInput = {
  AND?: Prisma.ToolScalarWhereWithAggregatesInput | Prisma.ToolScalarWhereWithAggregatesInput[]
  OR?: Prisma.ToolScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ToolScalarWhereWithAggregatesInput | Prisma.ToolScalarWhereWithAggregatesInput[]
  toolId?: Prisma.StringWithAggregatesFilter<"Tool"> | string
  organizationId?: Prisma.StringWithAggregatesFilter<"Tool"> | string
  name?: Prisma.StringWithAggregatesFilter<"Tool"> | string
  description?: Prisma.StringWithAggregatesFilter<"Tool"> | string
  disable_interruptions?: Prisma.BoolWithAggregatesFilter<"Tool"> | boolean
  force_pre_tool_speech?: Prisma.BoolWithAggregatesFilter<"Tool"> | boolean
  api_url?: Prisma.StringWithAggregatesFilter<"Tool"> | string
  api_method?: Prisma.StringNullableWithAggregatesFilter<"Tool"> | string | null
  api_headers?: Prisma.JsonNullableWithAggregatesFilter<"Tool">
  api_body?: Prisma.JsonNullableWithAggregatesFilter<"Tool">
  api_query_params?: Prisma.JsonNullableWithAggregatesFilter<"Tool">
  api_path_params?: Prisma.JsonNullableWithAggregatesFilter<"Tool">
  response_timeout_secs?: Prisma.IntNullableWithAggregatesFilter<"Tool"> | number | null
  dynamic_variables?: Prisma.JsonNullableWithAggregatesFilter<"Tool">
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Tool"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Tool"> | Date | string
  userId?: Prisma.StringNullableWithAggregatesFilter<"Tool"> | string | null
}

export type ToolCreateInput = {
  toolId?: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  organization: Prisma.OrganizationCreateNestedOneWithoutToolsInput
  user?: Prisma.UserCreateNestedOneWithoutToolsInput
  agent?: Prisma.AgentCreateNestedManyWithoutToolsInput
}

export type ToolUncheckedCreateInput = {
  toolId?: string
  organizationId: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  userId?: string | null
  agent?: Prisma.AgentUncheckedCreateNestedManyWithoutToolsInput
}

export type ToolUpdateInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutToolsNestedInput
  user?: Prisma.UserUpdateOneWithoutToolsNestedInput
  agent?: Prisma.AgentUpdateManyWithoutToolsNestedInput
}

export type ToolUncheckedUpdateInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  agent?: Prisma.AgentUncheckedUpdateManyWithoutToolsNestedInput
}

export type ToolCreateManyInput = {
  toolId?: string
  organizationId: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  userId?: string | null
}

export type ToolUpdateManyMutationInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ToolUncheckedUpdateManyInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ToolListRelationFilter = {
  every?: Prisma.ToolWhereInput
  some?: Prisma.ToolWhereInput
  none?: Prisma.ToolWhereInput
}

export type ToolOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type ToolCountOrderByAggregateInput = {
  toolId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  disable_interruptions?: Prisma.SortOrder
  force_pre_tool_speech?: Prisma.SortOrder
  api_url?: Prisma.SortOrder
  api_method?: Prisma.SortOrder
  api_headers?: Prisma.SortOrder
  api_body?: Prisma.SortOrder
  api_query_params?: Prisma.SortOrder
  api_path_params?: Prisma.SortOrder
  response_timeout_secs?: Prisma.SortOrder
  dynamic_variables?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type ToolAvgOrderByAggregateInput = {
  response_timeout_secs?: Prisma.SortOrder
}

export type ToolMaxOrderByAggregateInput = {
  toolId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  disable_interruptions?: Prisma.SortOrder
  force_pre_tool_speech?: Prisma.SortOrder
  api_url?: Prisma.SortOrder
  api_method?: Prisma.SortOrder
  response_timeout_secs?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type ToolMinOrderByAggregateInput = {
  toolId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  disable_interruptions?: Prisma.SortOrder
  force_pre_tool_speech?: Prisma.SortOrder
  api_url?: Prisma.SortOrder
  api_method?: Prisma.SortOrder
  response_timeout_secs?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type ToolSumOrderByAggregateInput = {
  response_timeout_secs?: Prisma.SortOrder
}

export type ToolCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutUserInput, Prisma.ToolUncheckedCreateWithoutUserInput> | Prisma.ToolCreateWithoutUserInput[] | Prisma.ToolUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutUserInput | Prisma.ToolCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.ToolCreateManyUserInputEnvelope
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
}

export type ToolUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutUserInput, Prisma.ToolUncheckedCreateWithoutUserInput> | Prisma.ToolCreateWithoutUserInput[] | Prisma.ToolUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutUserInput | Prisma.ToolCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.ToolCreateManyUserInputEnvelope
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
}

export type ToolUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutUserInput, Prisma.ToolUncheckedCreateWithoutUserInput> | Prisma.ToolCreateWithoutUserInput[] | Prisma.ToolUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutUserInput | Prisma.ToolCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.ToolUpsertWithWhereUniqueWithoutUserInput | Prisma.ToolUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.ToolCreateManyUserInputEnvelope
  set?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  disconnect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  delete?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  update?: Prisma.ToolUpdateWithWhereUniqueWithoutUserInput | Prisma.ToolUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.ToolUpdateManyWithWhereWithoutUserInput | Prisma.ToolUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[]
}

export type ToolUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutUserInput, Prisma.ToolUncheckedCreateWithoutUserInput> | Prisma.ToolCreateWithoutUserInput[] | Prisma.ToolUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutUserInput | Prisma.ToolCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.ToolUpsertWithWhereUniqueWithoutUserInput | Prisma.ToolUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.ToolCreateManyUserInputEnvelope
  set?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  disconnect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  delete?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  update?: Prisma.ToolUpdateWithWhereUniqueWithoutUserInput | Prisma.ToolUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.ToolUpdateManyWithWhereWithoutUserInput | Prisma.ToolUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[]
}

export type ToolCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutOrganizationInput, Prisma.ToolUncheckedCreateWithoutOrganizationInput> | Prisma.ToolCreateWithoutOrganizationInput[] | Prisma.ToolUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutOrganizationInput | Prisma.ToolCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.ToolCreateManyOrganizationInputEnvelope
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
}

export type ToolUncheckedCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutOrganizationInput, Prisma.ToolUncheckedCreateWithoutOrganizationInput> | Prisma.ToolCreateWithoutOrganizationInput[] | Prisma.ToolUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutOrganizationInput | Prisma.ToolCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.ToolCreateManyOrganizationInputEnvelope
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
}

export type ToolUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutOrganizationInput, Prisma.ToolUncheckedCreateWithoutOrganizationInput> | Prisma.ToolCreateWithoutOrganizationInput[] | Prisma.ToolUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutOrganizationInput | Prisma.ToolCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.ToolUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ToolUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.ToolCreateManyOrganizationInputEnvelope
  set?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  disconnect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  delete?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  update?: Prisma.ToolUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ToolUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.ToolUpdateManyWithWhereWithoutOrganizationInput | Prisma.ToolUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[]
}

export type ToolUncheckedUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutOrganizationInput, Prisma.ToolUncheckedCreateWithoutOrganizationInput> | Prisma.ToolCreateWithoutOrganizationInput[] | Prisma.ToolUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutOrganizationInput | Prisma.ToolCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.ToolUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ToolUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.ToolCreateManyOrganizationInputEnvelope
  set?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  disconnect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  delete?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  update?: Prisma.ToolUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ToolUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.ToolUpdateManyWithWhereWithoutOrganizationInput | Prisma.ToolUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[]
}

export type ToolCreateNestedManyWithoutAgentInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutAgentInput, Prisma.ToolUncheckedCreateWithoutAgentInput> | Prisma.ToolCreateWithoutAgentInput[] | Prisma.ToolUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutAgentInput | Prisma.ToolCreateOrConnectWithoutAgentInput[]
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
}

export type ToolUncheckedCreateNestedManyWithoutAgentInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutAgentInput, Prisma.ToolUncheckedCreateWithoutAgentInput> | Prisma.ToolCreateWithoutAgentInput[] | Prisma.ToolUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutAgentInput | Prisma.ToolCreateOrConnectWithoutAgentInput[]
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
}

export type ToolUpdateManyWithoutAgentNestedInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutAgentInput, Prisma.ToolUncheckedCreateWithoutAgentInput> | Prisma.ToolCreateWithoutAgentInput[] | Prisma.ToolUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutAgentInput | Prisma.ToolCreateOrConnectWithoutAgentInput[]
  upsert?: Prisma.ToolUpsertWithWhereUniqueWithoutAgentInput | Prisma.ToolUpsertWithWhereUniqueWithoutAgentInput[]
  set?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  disconnect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  delete?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  update?: Prisma.ToolUpdateWithWhereUniqueWithoutAgentInput | Prisma.ToolUpdateWithWhereUniqueWithoutAgentInput[]
  updateMany?: Prisma.ToolUpdateManyWithWhereWithoutAgentInput | Prisma.ToolUpdateManyWithWhereWithoutAgentInput[]
  deleteMany?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[]
}

export type ToolUncheckedUpdateManyWithoutAgentNestedInput = {
  create?: Prisma.XOR<Prisma.ToolCreateWithoutAgentInput, Prisma.ToolUncheckedCreateWithoutAgentInput> | Prisma.ToolCreateWithoutAgentInput[] | Prisma.ToolUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.ToolCreateOrConnectWithoutAgentInput | Prisma.ToolCreateOrConnectWithoutAgentInput[]
  upsert?: Prisma.ToolUpsertWithWhereUniqueWithoutAgentInput | Prisma.ToolUpsertWithWhereUniqueWithoutAgentInput[]
  set?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  disconnect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  delete?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[]
  update?: Prisma.ToolUpdateWithWhereUniqueWithoutAgentInput | Prisma.ToolUpdateWithWhereUniqueWithoutAgentInput[]
  updateMany?: Prisma.ToolUpdateManyWithWhereWithoutAgentInput | Prisma.ToolUpdateManyWithWhereWithoutAgentInput[]
  deleteMany?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[]
}

export type ToolCreateWithoutUserInput = {
  toolId?: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  organization: Prisma.OrganizationCreateNestedOneWithoutToolsInput
  agent?: Prisma.AgentCreateNestedManyWithoutToolsInput
}

export type ToolUncheckedCreateWithoutUserInput = {
  toolId?: string
  organizationId: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  agent?: Prisma.AgentUncheckedCreateNestedManyWithoutToolsInput
}

export type ToolCreateOrConnectWithoutUserInput = {
  where: Prisma.ToolWhereUniqueInput
  create: Prisma.XOR<Prisma.ToolCreateWithoutUserInput, Prisma.ToolUncheckedCreateWithoutUserInput>
}

export type ToolCreateManyUserInputEnvelope = {
  data: Prisma.ToolCreateManyUserInput | Prisma.ToolCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type ToolUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.ToolWhereUniqueInput
  update: Prisma.XOR<Prisma.ToolUpdateWithoutUserInput, Prisma.ToolUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.ToolCreateWithoutUserInput, Prisma.ToolUncheckedCreateWithoutUserInput>
}

export type ToolUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.ToolWhereUniqueInput
  data: Prisma.XOR<Prisma.ToolUpdateWithoutUserInput, Prisma.ToolUncheckedUpdateWithoutUserInput>
}

export type ToolUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.ToolScalarWhereInput
  data: Prisma.XOR<Prisma.ToolUpdateManyMutationInput, Prisma.ToolUncheckedUpdateManyWithoutUserInput>
}

export type ToolScalarWhereInput = {
  AND?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[]
  OR?: Prisma.ToolScalarWhereInput[]
  NOT?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[]
  toolId?: Prisma.StringFilter<"Tool"> | string
  organizationId?: Prisma.StringFilter<"Tool"> | string
  name?: Prisma.StringFilter<"Tool"> | string
  description?: Prisma.StringFilter<"Tool"> | string
  disable_interruptions?: Prisma.BoolFilter<"Tool"> | boolean
  force_pre_tool_speech?: Prisma.BoolFilter<"Tool"> | boolean
  api_url?: Prisma.StringFilter<"Tool"> | string
  api_method?: Prisma.StringNullableFilter<"Tool"> | string | null
  api_headers?: Prisma.JsonNullableFilter<"Tool">
  api_body?: Prisma.JsonNullableFilter<"Tool">
  api_query_params?: Prisma.JsonNullableFilter<"Tool">
  api_path_params?: Prisma.JsonNullableFilter<"Tool">
  response_timeout_secs?: Prisma.IntNullableFilter<"Tool"> | number | null
  dynamic_variables?: Prisma.JsonNullableFilter<"Tool">
  createdAt?: Prisma.DateTimeFilter<"Tool"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Tool"> | Date | string
  userId?: Prisma.StringNullableFilter<"Tool"> | string | null
}

export type ToolCreateWithoutOrganizationInput = {
  toolId?: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  user?: Prisma.UserCreateNestedOneWithoutToolsInput
  agent?: Prisma.AgentCreateNestedManyWithoutToolsInput
}

export type ToolUncheckedCreateWithoutOrganizationInput = {
  toolId?: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  userId?: string | null
  agent?: Prisma.AgentUncheckedCreateNestedManyWithoutToolsInput
}

export type ToolCreateOrConnectWithoutOrganizationInput = {
  where: Prisma.ToolWhereUniqueInput
  create: Prisma.XOR<Prisma.ToolCreateWithoutOrganizationInput, Prisma.ToolUncheckedCreateWithoutOrganizationInput>
}

export type ToolCreateManyOrganizationInputEnvelope = {
  data: Prisma.ToolCreateManyOrganizationInput | Prisma.ToolCreateManyOrganizationInput[]
  skipDuplicates?: boolean
}

export type ToolUpsertWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.ToolWhereUniqueInput
  update: Prisma.XOR<Prisma.ToolUpdateWithoutOrganizationInput, Prisma.ToolUncheckedUpdateWithoutOrganizationInput>
  create: Prisma.XOR<Prisma.ToolCreateWithoutOrganizationInput, Prisma.ToolUncheckedCreateWithoutOrganizationInput>
}

export type ToolUpdateWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.ToolWhereUniqueInput
  data: Prisma.XOR<Prisma.ToolUpdateWithoutOrganizationInput, Prisma.ToolUncheckedUpdateWithoutOrganizationInput>
}

export type ToolUpdateManyWithWhereWithoutOrganizationInput = {
  where: Prisma.ToolScalarWhereInput
  data: Prisma.XOR<Prisma.ToolUpdateManyMutationInput, Prisma.ToolUncheckedUpdateManyWithoutOrganizationInput>
}

export type ToolCreateWithoutAgentInput = {
  toolId?: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  organization: Prisma.OrganizationCreateNestedOneWithoutToolsInput
  user?: Prisma.UserCreateNestedOneWithoutToolsInput
}

export type ToolUncheckedCreateWithoutAgentInput = {
  toolId?: string
  organizationId: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  userId?: string | null
}

export type ToolCreateOrConnectWithoutAgentInput = {
  where: Prisma.ToolWhereUniqueInput
  create: Prisma.XOR<Prisma.ToolCreateWithoutAgentInput, Prisma.ToolUncheckedCreateWithoutAgentInput>
}

export type ToolUpsertWithWhereUniqueWithoutAgentInput = {
  where: Prisma.ToolWhereUniqueInput
  update: Prisma.XOR<Prisma.ToolUpdateWithoutAgentInput, Prisma.ToolUncheckedUpdateWithoutAgentInput>
  create: Prisma.XOR<Prisma.ToolCreateWithoutAgentInput, Prisma.ToolUncheckedCreateWithoutAgentInput>
}

export type ToolUpdateWithWhereUniqueWithoutAgentInput = {
  where: Prisma.ToolWhereUniqueInput
  data: Prisma.XOR<Prisma.ToolUpdateWithoutAgentInput, Prisma.ToolUncheckedUpdateWithoutAgentInput>
}

export type ToolUpdateManyWithWhereWithoutAgentInput = {
  where: Prisma.ToolScalarWhereInput
  data: Prisma.XOR<Prisma.ToolUpdateManyMutationInput, Prisma.ToolUncheckedUpdateManyWithoutAgentInput>
}

export type ToolCreateManyUserInput = {
  toolId?: string
  organizationId: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ToolUpdateWithoutUserInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutToolsNestedInput
  agent?: Prisma.AgentUpdateManyWithoutToolsNestedInput
}

export type ToolUncheckedUpdateWithoutUserInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agent?: Prisma.AgentUncheckedUpdateManyWithoutToolsNestedInput
}

export type ToolUncheckedUpdateManyWithoutUserInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ToolCreateManyOrganizationInput = {
  toolId?: string
  name: string
  description: string
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url: string
  api_method?: string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  userId?: string | null
}

export type ToolUpdateWithoutOrganizationInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneWithoutToolsNestedInput
  agent?: Prisma.AgentUpdateManyWithoutToolsNestedInput
}

export type ToolUncheckedUpdateWithoutOrganizationInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  agent?: Prisma.AgentUncheckedUpdateManyWithoutToolsNestedInput
}

export type ToolUncheckedUpdateManyWithoutOrganizationInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ToolUpdateWithoutAgentInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutToolsNestedInput
  user?: Prisma.UserUpdateOneWithoutToolsNestedInput
}

export type ToolUncheckedUpdateWithoutAgentInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ToolUncheckedUpdateManyWithoutAgentInput = {
  toolId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.StringFieldUpdateOperationsInput | string
  disable_interruptions?: Prisma.BoolFieldUpdateOperationsInput | boolean
  force_pre_tool_speech?: Prisma.BoolFieldUpdateOperationsInput | boolean
  api_url?: Prisma.StringFieldUpdateOperationsInput | string
  api_method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  api_headers?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_body?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_query_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  api_path_params?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  response_timeout_secs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  dynamic_variables?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}


/**
 * Count Type ToolCountOutputType
 */

export type ToolCountOutputType = {
  agent: number
}

export type ToolCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  agent?: boolean | ToolCountOutputTypeCountAgentArgs
}

/**
 * ToolCountOutputType without action
 */
export type ToolCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ToolCountOutputType
   */
  select?: Prisma.ToolCountOutputTypeSelect<ExtArgs> | null
}

/**
 * ToolCountOutputType without action
 */
export type ToolCountOutputTypeCountAgentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.AgentWhereInput
}


export type ToolSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  toolId?: boolean
  organizationId?: boolean
  name?: boolean
  description?: boolean
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url?: boolean
  api_method?: boolean
  api_headers?: boolean
  api_body?: boolean
  api_query_params?: boolean
  api_path_params?: boolean
  response_timeout_secs?: boolean
  dynamic_variables?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  userId?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.Tool$userArgs<ExtArgs>
  agent?: boolean | Prisma.Tool$agentArgs<ExtArgs>
  _count?: boolean | Prisma.ToolCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tool"]>

export type ToolSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  toolId?: boolean
  organizationId?: boolean
  name?: boolean
  description?: boolean
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url?: boolean
  api_method?: boolean
  api_headers?: boolean
  api_body?: boolean
  api_query_params?: boolean
  api_path_params?: boolean
  response_timeout_secs?: boolean
  dynamic_variables?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  userId?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.Tool$userArgs<ExtArgs>
}, ExtArgs["result"]["tool"]>

export type ToolSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  toolId?: boolean
  organizationId?: boolean
  name?: boolean
  description?: boolean
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url?: boolean
  api_method?: boolean
  api_headers?: boolean
  api_body?: boolean
  api_query_params?: boolean
  api_path_params?: boolean
  response_timeout_secs?: boolean
  dynamic_variables?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  userId?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.Tool$userArgs<ExtArgs>
}, ExtArgs["result"]["tool"]>

export type ToolSelectScalar = {
  toolId?: boolean
  organizationId?: boolean
  name?: boolean
  description?: boolean
  disable_interruptions?: boolean
  force_pre_tool_speech?: boolean
  api_url?: boolean
  api_method?: boolean
  api_headers?: boolean
  api_body?: boolean
  api_query_params?: boolean
  api_path_params?: boolean
  response_timeout_secs?: boolean
  dynamic_variables?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  userId?: boolean
}

export type ToolOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"toolId" | "organizationId" | "name" | "description" | "disable_interruptions" | "force_pre_tool_speech" | "api_url" | "api_method" | "api_headers" | "api_body" | "api_query_params" | "api_path_params" | "response_timeout_secs" | "dynamic_variables" | "createdAt" | "updatedAt" | "userId", ExtArgs["result"]["tool"]>
export type ToolInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.Tool$userArgs<ExtArgs>
  agent?: boolean | Prisma.Tool$agentArgs<ExtArgs>
  _count?: boolean | Prisma.ToolCountOutputTypeDefaultArgs<ExtArgs>
}
export type ToolIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.Tool$userArgs<ExtArgs>
}
export type ToolIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.Tool$userArgs<ExtArgs>
}

export type $ToolPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Tool"
  objects: {
    organization: Prisma.$OrganizationPayload<ExtArgs>
    user: Prisma.$UserPayload<ExtArgs> | null
    agent: Prisma.$AgentPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    toolId: string
    organizationId: string
    name: string
    description: string
    disable_interruptions: boolean
    force_pre_tool_speech: boolean
    api_url: string
    api_method: string | null
    api_headers: runtime.JsonValue | null
    api_body: runtime.JsonValue | null
    api_query_params: runtime.JsonValue | null
    api_path_params: runtime.JsonValue | null
    response_timeout_secs: number | null
    dynamic_variables: runtime.JsonValue | null
    createdAt: Date
    updatedAt: Date
    userId: string | null
  }, ExtArgs["result"]["tool"]>
  composites: {}
}

export type ToolGetPayload<S extends boolean | null | undefined | ToolDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ToolPayload, S>

export type ToolCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<ToolFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: ToolCountAggregateInputType | true
  }

export interface ToolDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Tool'], meta: { name: 'Tool' } }
  /**
   * Find zero or one Tool that matches the filter.
   * @param {ToolFindUniqueArgs} args - Arguments to find a Tool
   * @example
   * // Get one Tool
   * const tool = await prisma.tool.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends ToolFindUniqueArgs>(args: Prisma.SelectSubset<T, ToolFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one Tool that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {ToolFindUniqueOrThrowArgs} args - Arguments to find a Tool
   * @example
   * // Get one Tool
   * const tool = await prisma.tool.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends ToolFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ToolFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Tool that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ToolFindFirstArgs} args - Arguments to find a Tool
   * @example
   * // Get one Tool
   * const tool = await prisma.tool.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends ToolFindFirstArgs>(args?: Prisma.SelectSubset<T, ToolFindFirstArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Tool that matches the filter or
   * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ToolFindFirstOrThrowArgs} args - Arguments to find a Tool
   * @example
   * // Get one Tool
   * const tool = await prisma.tool.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends ToolFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ToolFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more Tools that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ToolFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Tools
   * const tools = await prisma.tool.findMany()
   * 
   * // Get first 10 Tools
   * const tools = await prisma.tool.findMany({ take: 10 })
   * 
   * // Only select the `toolId`
   * const toolWithToolIdOnly = await prisma.tool.findMany({ select: { toolId: true } })
   * 
   */
  findMany<T extends ToolFindManyArgs>(args?: Prisma.SelectSubset<T, ToolFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a Tool.
   * @param {ToolCreateArgs} args - Arguments to create a Tool.
   * @example
   * // Create one Tool
   * const Tool = await prisma.tool.create({
   *   data: {
   *     // ... data to create a Tool
   *   }
   * })
   * 
   */
  create<T extends ToolCreateArgs>(args: Prisma.SelectSubset<T, ToolCreateArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many Tools.
   * @param {ToolCreateManyArgs} args - Arguments to create many Tools.
   * @example
   * // Create many Tools
   * const tool = await prisma.tool.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends ToolCreateManyArgs>(args?: Prisma.SelectSubset<T, ToolCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many Tools and returns the data saved in the database.
   * @param {ToolCreateManyAndReturnArgs} args - Arguments to create many Tools.
   * @example
   * // Create many Tools
   * const tool = await prisma.tool.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Tools and only return the `toolId`
   * const toolWithToolIdOnly = await prisma.tool.createManyAndReturn({
   *   select: { toolId: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends ToolCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ToolCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a Tool.
   * @param {ToolDeleteArgs} args - Arguments to delete one Tool.
   * @example
   * // Delete one Tool
   * const Tool = await prisma.tool.delete({
   *   where: {
   *     // ... filter to delete one Tool
   *   }
   * })
   * 
   */
  delete<T extends ToolDeleteArgs>(args: Prisma.SelectSubset<T, ToolDeleteArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one Tool.
   * @param {ToolUpdateArgs} args - Arguments to update one Tool.
   * @example
   * // Update one Tool
   * const tool = await prisma.tool.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends ToolUpdateArgs>(args: Prisma.SelectSubset<T, ToolUpdateArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more Tools.
   * @param {ToolDeleteManyArgs} args - Arguments to filter Tools to delete.
   * @example
   * // Delete a few Tools
   * const { count } = await prisma.tool.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends ToolDeleteManyArgs>(args?: Prisma.SelectSubset<T, ToolDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Tools.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ToolUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Tools
   * const tool = await prisma.tool.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends ToolUpdateManyArgs>(args: Prisma.SelectSubset<T, ToolUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Tools and returns the data updated in the database.
   * @param {ToolUpdateManyAndReturnArgs} args - Arguments to update many Tools.
   * @example
   * // Update many Tools
   * const tool = await prisma.tool.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Tools and only return the `toolId`
   * const toolWithToolIdOnly = await prisma.tool.updateManyAndReturn({
   *   select: { toolId: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends ToolUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ToolUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one Tool.
   * @param {ToolUpsertArgs} args - Arguments to update or create a Tool.
   * @example
   * // Update or create a Tool
   * const tool = await prisma.tool.upsert({
   *   create: {
   *     // ... data to create a Tool
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the Tool we want to update
   *   }
   * })
   */
  upsert<T extends ToolUpsertArgs>(args: Prisma.SelectSubset<T, ToolUpsertArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of Tools.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ToolCountArgs} args - Arguments to filter Tools to count.
   * @example
   * // Count the number of Tools
   * const count = await prisma.tool.count({
   *   where: {
   *     // ... the filter for the Tools we want to count
   *   }
   * })
  **/
  count<T extends ToolCountArgs>(
    args?: Prisma.Subset<T, ToolCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], ToolCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a Tool.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ToolAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
   * @example
   * // Ordered by age ascending
   * // Where email contains prisma.io
   * // Limited to the 10 users
   * const aggregations = await prisma.user.aggregate({
   *   _avg: {
   *     age: true,
   *   },
   *   where: {
   *     email: {
   *       contains: "prisma.io",
   *     },
   *   },
   *   orderBy: {
   *     age: "asc",
   *   },
   *   take: 10,
   * })
  **/
  aggregate<T extends ToolAggregateArgs>(args: Prisma.Subset<T, ToolAggregateArgs>): Prisma.PrismaPromise<GetToolAggregateType<T>>

  /**
   * Group by Tool.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ToolGroupByArgs} args - Group by arguments.
   * @example
   * // Group by city, order by createdAt, get count
   * const result = await prisma.user.groupBy({
   *   by: ['city', 'createdAt'],
   *   orderBy: {
   *     createdAt: true
   *   },
   *   _count: {
   *     _all: true
   *   },
   * })
   * 
  **/
  groupBy<
    T extends ToolGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: ToolGroupByArgs['orderBy'] }
      : { orderBy?: ToolGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
    InputErrors extends ByEmpty extends Prisma.True
    ? `Error: "by" must not be empty.`
    : HavingValid extends Prisma.False
    ? {
        [P in HavingFields]: P extends ByFields
          ? never
          : P extends string
          ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
          : [
              Error,
              'Field ',
              P,
              ` in "having" needs to be provided in "by"`,
            ]
      }[HavingFields]
    : 'take' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "take", you also need to provide "orderBy"'
    : 'skip' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "skip", you also need to provide "orderBy"'
    : ByValid extends Prisma.True
    ? {}
    : {
        [P in OrderFields]: P extends ByFields
          ? never
          : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
      }[OrderFields]
  >(args: Prisma.SubsetIntersection<T, ToolGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetToolGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the Tool model
 */
readonly fields: ToolFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for Tool.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__ToolClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  user<T extends Prisma.Tool$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tool$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  agent<T extends Prisma.Tool$agentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tool$agentArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the Tool model
 */
export interface ToolFieldRefs {
  readonly toolId: Prisma.FieldRef<"Tool", 'String'>
  readonly organizationId: Prisma.FieldRef<"Tool", 'String'>
  readonly name: Prisma.FieldRef<"Tool", 'String'>
  readonly description: Prisma.FieldRef<"Tool", 'String'>
  readonly disable_interruptions: Prisma.FieldRef<"Tool", 'Boolean'>
  readonly force_pre_tool_speech: Prisma.FieldRef<"Tool", 'Boolean'>
  readonly api_url: Prisma.FieldRef<"Tool", 'String'>
  readonly api_method: Prisma.FieldRef<"Tool", 'String'>
  readonly api_headers: Prisma.FieldRef<"Tool", 'Json'>
  readonly api_body: Prisma.FieldRef<"Tool", 'Json'>
  readonly api_query_params: Prisma.FieldRef<"Tool", 'Json'>
  readonly api_path_params: Prisma.FieldRef<"Tool", 'Json'>
  readonly response_timeout_secs: Prisma.FieldRef<"Tool", 'Int'>
  readonly dynamic_variables: Prisma.FieldRef<"Tool", 'Json'>
  readonly createdAt: Prisma.FieldRef<"Tool", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Tool", 'DateTime'>
  readonly userId: Prisma.FieldRef<"Tool", 'String'>
}
    

// Custom InputTypes
/**
 * Tool findUnique
 */
export type ToolFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * Filter, which Tool to fetch.
   */
  where: Prisma.ToolWhereUniqueInput
}

/**
 * Tool findUniqueOrThrow
 */
export type ToolFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * Filter, which Tool to fetch.
   */
  where: Prisma.ToolWhereUniqueInput
}

/**
 * Tool findFirst
 */
export type ToolFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * Filter, which Tool to fetch.
   */
  where?: Prisma.ToolWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Tools to fetch.
   */
  orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for Tools.
   */
  cursor?: Prisma.ToolWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Tools from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Tools.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Tools.
   */
  distinct?: Prisma.ToolScalarFieldEnum | Prisma.ToolScalarFieldEnum[]
}

/**
 * Tool findFirstOrThrow
 */
export type ToolFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * Filter, which Tool to fetch.
   */
  where?: Prisma.ToolWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Tools to fetch.
   */
  orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for Tools.
   */
  cursor?: Prisma.ToolWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Tools from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Tools.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Tools.
   */
  distinct?: Prisma.ToolScalarFieldEnum | Prisma.ToolScalarFieldEnum[]
}

/**
 * Tool findMany
 */
export type ToolFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * Filter, which Tools to fetch.
   */
  where?: Prisma.ToolWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Tools to fetch.
   */
  orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing Tools.
   */
  cursor?: Prisma.ToolWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Tools from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Tools.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Tools.
   */
  distinct?: Prisma.ToolScalarFieldEnum | Prisma.ToolScalarFieldEnum[]
}

/**
 * Tool create
 */
export type ToolCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * The data needed to create a Tool.
   */
  data: Prisma.XOR<Prisma.ToolCreateInput, Prisma.ToolUncheckedCreateInput>
}

/**
 * Tool createMany
 */
export type ToolCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many Tools.
   */
  data: Prisma.ToolCreateManyInput | Prisma.ToolCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * Tool createManyAndReturn
 */
export type ToolCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * The data used to create many Tools.
   */
  data: Prisma.ToolCreateManyInput | Prisma.ToolCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Tool update
 */
export type ToolUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * The data needed to update a Tool.
   */
  data: Prisma.XOR<Prisma.ToolUpdateInput, Prisma.ToolUncheckedUpdateInput>
  /**
   * Choose, which Tool to update.
   */
  where: Prisma.ToolWhereUniqueInput
}

/**
 * Tool updateMany
 */
export type ToolUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Tools.
   */
  data: Prisma.XOR<Prisma.ToolUpdateManyMutationInput, Prisma.ToolUncheckedUpdateManyInput>
  /**
   * Filter which Tools to update
   */
  where?: Prisma.ToolWhereInput
  /**
   * Limit how many Tools to update.
   */
  limit?: number
}

/**
 * Tool updateManyAndReturn
 */
export type ToolUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * The data used to update Tools.
   */
  data: Prisma.XOR<Prisma.ToolUpdateManyMutationInput, Prisma.ToolUncheckedUpdateManyInput>
  /**
   * Filter which Tools to update
   */
  where?: Prisma.ToolWhereInput
  /**
   * Limit how many Tools to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Tool upsert
 */
export type ToolUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * The filter to search for the Tool to update in case it exists.
   */
  where: Prisma.ToolWhereUniqueInput
  /**
   * In case the Tool found by the `where` argument doesn't exist, create a new Tool with this data.
   */
  create: Prisma.XOR<Prisma.ToolCreateInput, Prisma.ToolUncheckedCreateInput>
  /**
   * In case the Tool was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ToolUpdateInput, Prisma.ToolUncheckedUpdateInput>
}

/**
 * Tool delete
 */
export type ToolDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
  /**
   * Filter which Tool to delete.
   */
  where: Prisma.ToolWhereUniqueInput
}

/**
 * Tool deleteMany
 */
export type ToolDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Tools to delete
   */
  where?: Prisma.ToolWhereInput
  /**
   * Limit how many Tools to delete.
   */
  limit?: number
}

/**
 * Tool.user
 */
export type Tool$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  where?: Prisma.UserWhereInput
}

/**
 * Tool.agent
 */
export type Tool$agentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Agent
   */
  select?: Prisma.AgentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Agent
   */
  omit?: Prisma.AgentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentInclude<ExtArgs> | null
  where?: Prisma.AgentWhereInput
  orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
  cursor?: Prisma.AgentWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[]
}

/**
 * Tool without action
 */
export type ToolDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Tool
   */
  select?: Prisma.ToolSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Tool
   */
  omit?: Prisma.ToolOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ToolInclude<ExtArgs> | null
}
