make_decisions
Answer closed questions about a context: yes or no, one choice from a list, or a score on a rubric. Each answer carries probabilities, not only a verdict. Use to classify or judge a piece of text or data. Do not use for open questions (use answer_question). Defaults to parallel. Set provider to choose another supported provider; Fieldwork never switches providers after an error.
/api/v1/tools/make_decisionsAuthorizationBearer token · headerrequiredA Fieldwork gateway key, issued per agent by the operator. Send it as Authorization: Bearer <key>.
application/jsonproviderstringparalleltimeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
contextanyrequiredWhat the questions are about: text, or any JSON value.
questionsobjectrequiredThe questions, each under a name of your choice: letters, digits, _ and -. The answers come back under the same names.
countrystringSearch from this country, as a two-letter ISO code such as GB.
maxCharactersintegerShared long-text budget for this call; defaults to 20000. Never sent to the provider.
timeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
contextanyrequiredWhat the questions are about: text, or any JSON value.
questionsobjectrequiredThe questions, each under a name of your choice: letters, digits, _ and -. The answers come back under the same names.
countrystringSearch from this country, as a two-letter ISO code such as GB.
maxCharactersintegerShared long-text budget for this call; defaults to 20000. Never sent to the provider.
timeoutintegerMaximum wait in milliseconds. Resume a returned jobId to collect a long job.
providerstringrequiredThe provider that ran the call and its normalized result.
providerstringrequiredparallelrequestIdstringrequiredresultobjectrequiredShow propertiesHide properties
answersobjectrequiredOne answer per question, under the question's name.
citationsobject[]requiredShow propertiesHide properties
objectexcerptsstring[]titlestringurlstringrequiredmetaobjectRequest details from the provider: its request id, what it charged and any warnings.
Show propertiesHide properties
requestIdstringusageobjectShow propertiesHide properties
costUsdnumbercreditsnumberunitsobjectwarningsstring[]truncatedobject[]One entry for each cut text field; absent when nothing was cut.
Show propertiesHide properties
objectlengthintegerrequiredOriginal character length.
pathstringrequiredshownintegerrequiredCharacters shown before the inline cut note.
A refusal or a failed call. Branch on error.code; never parse the message.
errorobjectrequiredShow propertiesHide properties
codestringrequiredAbortedInvalidRequestJobFailedNotAFileNotFoundProviderErrorRateLimitedTimeoutTooLargeUnauthorizedUnsupportedjobIdstringA job that was already started. Pass it as resume instead of repeating the call.
messagestringrequiredproviderstringretryAfternumberSeconds to wait.
retryablebooleanrequiredWhether repeating the same call can succeed.
requestIdstring