Threads Query Stream
POST/threads/stream_query
Threads Query Stream
Request
- application/json
Body
required
- ThreadsQueryFilter
- MOD1
- MOD1
- MOD1
Array [
]
- MOD1
- MOD1
- MOD1
Array [
]
The ID of the project
filter
object
Filter criteria for the threads query
anyOf
after_datetime
object
Only include threads with start_time after this timestamp
anyOf
string
before_datetime
object
Only include threads with last_updated before this timestamp
anyOf
string
thread_ids
object
Only include threads with thread_ids in this list
anyOf
string
limit
object
Maximum number of threads to return
anyOf
integer
offset
object
Number of threads to skip
anyOf
integer
sort_by
object
Sorting criteria for the threads. Supported fields: 'thread_id', 'turn_count', 'start_time', 'last_updated', 'p50_turn_duration_ms', 'p99_turn_duration_ms'.
anyOf
Possible values: [asc
, desc
]
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}