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": {}
}
}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.
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
Workspace API key created while signed in on the Developers page. Send Authorization: Bearer seneca_sk_… A Clerk session token is not accepted.
Path Parameters
Query Parameters
Stored model id. Example: anthropic/claude-3-haiku. Use the id saved on the run, not a later replacement.
Character offset into the stored response. The default is 0.
Maximum characters of original text to return. The default is 8000. The maximum is 32000.
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.
Model id stored on this run. A retired model keeps this id.
Full stored text length in characters.
Character offset of text within the stored response.
True when characters remain after this window. Raise offset to read the rest.
"research.model_response"The requested character window of the original response. Null when no text is stored.