WorkerCreationArgs

    • active
      Type: boolean
      required

      Whether the worker is scheduled to run automatically.

    • hour
      Type: integerenum
      required

      The hour of the day (0-23) when the worker should run.

      values
      • 0
      • 1
      • 2
      • 3
      • 4
    • name
      Type: string
      min length:  
      1
      max length:  
      255
      required
    • prompt
      Type: string
      min length:  
      1
      required

      The prompt that the worker will use when it runs.

    • accessResourceIds
      Type: array string[] | null · UUID[]

      Optional list of resource IDs that the worker will have access to when running. Providing this will restrict the worker's access to only these resources and their descendants.

    • day
    • focusResourceIds
      Type: array string[] | null · UUID[]

      Optional list of resource IDs that the worker should focus on when running. This only provides a hint and does not change the worker's permissions.

    • frequency
      enum
      const:  
      weekly
      values
      • weekly
    • timezone
      Type: string | null
      max length:  
      255

      The timezone that the worker should use for scheduling in IANA format (e.g. "America/Toronto").

    • toolPermissions