Script Runs

Create or wait for a script workflow agent task step

Changed on
post/api/internal/script-runs/{runId}/agent-task

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/api/internal/script-runs/{runId}/agent-task
  • Auth
    HTTP bearer

Path parameters

runIdstring uuid required

Request body

stepKeystring required
templatestring
taskstring
agentIdstring
routingReason'skill' | 'continuity' | 'overflow' | 'human_pinned' | 'reroute_fault'
routingNotestring
tagsstring[]
priorityinteger
dependsOnstring[]
offerModeboolean
dirstring
vcsRepostring
modelstring
allowCustomModelboolean
parentTaskIdstring uuid
requestedByUserIdstring
outputSchemaobject
allowRedelegationboolean

Response

Agent task completed

taskIdstring required
taskOutputstring nullable required

Changes

    • info

      added the new optional request property

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the new optional request property