Prepare budgeted agent guidance for one turn
POST
/api/workspaces/{workspaceId}/custom-prompt/turn-guidance
const url = 'http://localhost:8080/api/workspaces/example/custom-prompt/turn-guidance';const options = { method: 'POST', headers: {cookie: 'auth_session=<auth_session>', 'Content-Type': 'application/json'}, body: '{"userText":"example","includeDbtRules":false,"dbtProjectId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
userText
required
string
includeDbtRules
boolean
dbtProjectId
string
Responses
Section titled “Responses”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"}