Reflect and generate answer
Changed onReflect and formulate an answer using bank identity, world facts, observations, and mental models.
This endpoint:
- Retrieves experience (conversations and events)
- Retrieves world facts relevant to the query
- Retrieves observations and mental models (bank's synthesized perspectives)
- Uses LLM to formulate a contextual answer
- Returns plain text answer and the facts used
Request
- Base URLhttps://hindsight.vectorize.io (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Headers
Request body
Example request
{
"budget": "low",
"include": {
"facts": {}
},
"max_tokens": 4096,
"query": "What do you think about artificial intelligence?",
"response_schema": {
"properties": {
"summary": {
"type": "string"
},
"key_points": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"summary",
"key_points"
],
"type": "object"
},
"tags": [
"user_a"
],
"tags_match": "any"
}Response
Successful Response
Example response
{
"based_on": {
"memories": [
{
"id": "123",
"text": "AI is used in healthcare",
"type": "world"
},
{
"id": "456",
"text": "I discussed AI applications last week",
"type": "experience"
}
]
},
"structured_output": {
"key_points": [
"Used in healthcare",
"Discussed recently"
],
"summary": "AI is transformative"
},
"text": "## AI Overview\n\nBased on my understanding, AI is a **transformative technology**:\n\n- Used extensively in healthcare\n- Discussed in recent conversations\n- Continues to evolve rapidly",
"trace": {
"llm_calls": [
{
"duration_ms": 1200,
"scope": "agent_1"
}
],
"observations": [
{
"id": "obs-1",
"name": "AI Technology",
"subtype": "structural",
"type": "concept"
}
],
"tool_calls": [
{
"duration_ms": 150,
"input": {
"query": "AI"
},
"tool": "recall"
}
]
},
"usage": {
"input_tokens": 1500,
"output_tokens": 500,
"total_tokens": 2000
}
}Changes
- info
added the new optional request property
- info
- warning
removed the optional property
//from the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
//// - info
added the new optional request property
/////// - info
added the new optional request property
////////// - info
added the new optional request property
//////////// - info
added the new optional request property
///////// - info
added the new optional request property
/////// - info
added the new optional request property
///////// - info
added the new optional request property
////// - info
added the new
exactenum value to the request property//// - info
added the new
exactenum value to the request property/////// - info
added the new
exactenum value to the request property////////// - info
added the new
exactenum value to the request property//////////// - info
added the new
exactenum value to the request property///////// - info
added the new
exactenum value to the request property/////// - info
added the new
exactenum value to the request property///////// - info
added the new
exactenum value to the request property////// - info
added the new
exactenum value to the request property - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- warning