Get Report Events
GET/api/v1/reports/:report_id/events
Get all historical events for a report.
Request
Path Parameters
Query Parameters
Cookie Parameters
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- ProgressEvent
- ReportUpdateEvent
- ReportStateEvent
- MOD1
- MOD1
Array [
- MOD1
Array [
]
- RelatedNodeInfo
- MOD2
- ObjectType
- MOD2
- MOD1
Array [
- ObjectType
- MOD2
- MOD1
]
- MOD1
- MOD1
- MOD1
]
]
The id of the event
The id of the report
The type of the event
event_data
object
required
The data for the event
anyOf
Event for tracking progress of operations in workflows.
The ID of the event
The ID of the group this event belongs to
progress
Possible values: [load_template
, extract_plan
, summarize
, file_processing
, generate_block
, editing
]
The message to display to the user
progress
object
Progress value between 0-1 if available
anyOf
number
Possible values: <= 1
Current status of the operation
Possible values: [pending
, in_progress
, completed
, error
]
pending
extra_detail
object
Any extra details to display to the user
anyOf
object
Event for updating the state of an report.
report_block_update
The message to display to the user
A block has been generated and is ready to be displayed
block
object
required
The block to update
The index of the block
The content of the block
sources
object[]
The sources for the block
node
object
required
Provided for backward compatibility.
Note: we keep the field with the typo "seperator" to maintain backward compatibility for serialized objects.
Unique ID of the node.
embedding
object
Embedding of the node.
anyOf
number
A flat dictionary of metadata fields
Metadata keys that are excluded from text for the embed model.
Metadata keys that are excluded from text for the LLM.
relationships
object
A mapping of relationships to other node information.
property name*
object
anyOf
node_type
object
anyOf
string
Possible values: [1
, 2
, 3
, 4
, 5
]
string
hash
object
anyOf
string
RelatedNodeInfo
node_type
object
anyOf
string
Possible values: [1
, 2
, 3
, 4
, 5
]
string
hash
object
anyOf
string
RelatedNodeInfo
Template for how metadata is formatted, with {key} and {value} placeholders.
{key}: {value}
Separator between metadata fields when converting to string.
Text content of the node.
MIME type of the node content.
text/plain
start_char_idx
object
Start char index of the node.
anyOf
integer
end_char_idx
object
End char index of the node.
anyOf
integer
Separator between metadata fields when converting to string.
Template for how text is formatted, with {content} and {metadata_str} placeholders.
{metadata_str}
{content}
TextNode
score
object
anyOf
number
TextNodeWithScore
Event for notifying when an report's state changes.
The message to display to the user
The new state of the report
Possible values: [pending
, planning
, waiting_approval
, generating
, completed
, error
]
The timestamp for the event
[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"report_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_type": "string",
"event_data": {},
"timestamp": "2024-07-29T15:51:28.071Z"
}
]
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"
}
]
}