sessions
Get Session History
sessions
Get Session History
GET
/
sessions
/
{session_id}
/
history
Copy
{
"entries": [
{
"role": "user",
"name": "<string>",
"content": [
{
"text": "<string>",
"type": "text"
}
],
"source": "api_request",
"tokenizer": "<string>",
"token_count": 123,
"model": "gpt-4o-mini",
"tool_calls": [
{
"type": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
},
"integration": "<any>",
"system": "<any>",
"api_call": "<any>",
"computer_20241022": {
"action": "key",
"text": "<string>",
"coordinate": [
123
]
},
"text_editor_20241022": {
"command": "str_replace",
"path": "<string>",
"file_text": "<string>",
"insert_line": 123,
"new_str": "<string>",
"old_str": "<string>",
"view_range": [
123
]
},
"bash_20241022": {
"command": "<string>",
"restart": true
},
"id": "<string>"
}
],
"tool_call_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"relations": [
{
"head": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation": "<string>",
"tail": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}
Authorizations
Path Parameters
Response
200
application/json
Successful Response
Available options:
user
, assistant
, system
, tool
Available options:
api_request
, api_response
, tool_response
, internal
, summarizer
, meta
Allowed value:
"function"
Available options:
key
, type
, cursor_position
, mouse_move
, left_click
, right_click
, middle_click
, double_click
, screenshot
Available options:
str_replace
, insert
, view
, undo_edit
Copy
{
"entries": [
{
"role": "user",
"name": "<string>",
"content": [
{
"text": "<string>",
"type": "text"
}
],
"source": "api_request",
"tokenizer": "<string>",
"token_count": 123,
"model": "gpt-4o-mini",
"tool_calls": [
{
"type": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
},
"integration": "<any>",
"system": "<any>",
"api_call": "<any>",
"computer_20241022": {
"action": "key",
"text": "<string>",
"coordinate": [
123
]
},
"text_editor_20241022": {
"command": "str_replace",
"path": "<string>",
"file_text": "<string>",
"insert_line": 123,
"new_str": "<string>",
"old_str": "<string>",
"view_range": [
123
]
},
"bash_20241022": {
"command": "<string>",
"restart": true
},
"id": "<string>"
}
],
"tool_call_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"relations": [
{
"head": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation": "<string>",
"tail": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}