Read one stored model response
curl --request GET \
--url https://seneca-research.fly.dev/v1/research/{run_id}/responses/text \
--header 'Authorization: Bearer <token>'import requests
url = "https://seneca-research.fly.dev/v1/research/{run_id}/responses/text"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://seneca-research.fly.dev/v1/research/{run_id}/responses/text', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"model_id": "<string>",
"status": "<string>",
"text_characters": 123,
"offset": 123,
"returned_characters": 123,
"truncated": true,
"object": "research.model_response",
"display_name": "<string>",
"laboratory": "<string>",
"input_tokens": 123,
"output_tokens": 123,
"text": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Research
Read one stored model response
Original text for one model id stored on a completed or partial run. model_id is the id from the response list or from a report field such as analysis.minority_insights[].supporting_model_ids. Slashes in the id belong in this query parameter. The id is not rewritten when the model is later retired. text is at most max_characters, starting at offset. This read does not start research, call a provider, or charge credits.
GET
/
v1
/
research
/
{run_id}
/
responses
/
text
Read one stored model response
curl --request GET \
--url https://seneca-research.fly.dev/v1/research/{run_id}/responses/text \
--header 'Authorization: Bearer <token>'import requests
url = "https://seneca-research.fly.dev/v1/research/{run_id}/responses/text"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://seneca-research.fly.dev/v1/research/{run_id}/responses/text', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"model_id": "<string>",
"status": "<string>",
"text_characters": 123,
"offset": 123,
"returned_characters": 123,
"truncated": true,
"object": "research.model_response",
"display_name": "<string>",
"laboratory": "<string>",
"input_tokens": 123,
"output_tokens": 123,
"text": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Query Parameters
Response
One model's metadata and a character window of its stored text. text is null when the model finished without stored text.
One stored model response. text is a character window, not the whole panel.