Skip to content

Prepare budgeted agent guidance for one turn

POST
/api/workspaces/{workspaceId}/custom-prompt/turn-guidance
curl --request POST \
--url http://localhost:8080/api/workspaces/example/custom-prompt/turn-guidance \
--header 'Content-Type: application/json' \
--cookie auth_session=<auth_session> \
--data '{ "userText": "example", "includeDbtRules": false, "dbtProjectId": "example" }'
workspaceId
required
string
Media typeapplication/json
object
userText
required
string
>= 1 characters <= 100000 characters
includeDbtRules
boolean
dbtProjectId
string

Prepared turn guidance.

Media typeapplication/json
object
success
required
boolean
skillsBlock
required
string
dbtRulesBlock
required
string

Example

{
"success": true
}

Invalid request

Media typeapplication/json
object
success
boolean
error
required
string

Example

{
"error": "Human-readable error message"
}

Access denied

Media typeapplication/json
object
success
boolean
error
required
string

Example

{
"error": "Human-readable error message"
}

Failed to prepare guidance

Media typeapplication/json
object
success
boolean
error
required
string

Example

{
"error": "Human-readable error message"
}