Nowledge Mem APIThreads
Create Thread
Create a new thread with messages.
thread_idstring
Human-readable thread identifier
title?string|null
messages
Thread messages
participants?Participants
source?string|null
project?string|null
workspace?string|null
tool_version?string|null
import_date?string|null
metadata?
Response Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/threads" \ -H "Content-Type: application/json" \ -d '{ "thread_id": "string", "messages": [ { "content": "string", "role": "string" } ] }'{
"thread": {
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"thread_id": "string",
"title": "string",
"summary": "string",
"message_count": 0,
"participants": [
"string"
],
"source": "string",
"project": "string",
"workspace": "string",
"tool_version": "string",
"import_date": "2019-08-24T14:15:22Z"
},
"messages": [
{
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"content": "string",
"role": "string",
"order_index": 0,
"timestamp": "2019-08-24T14:15:22Z",
"token_count": 0
}
],
"created_relationships": 0,
"auto_generated_summary": "string",
"extracted_memories": [
{
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"content": "string",
"title": "string",
"importance": 0.5,
"confidence": 0.5,
"embedding": [
0
],
"source_range": {
"property1": 0,
"property2": 0
},
"source": "string",
"semantic_field": "string",
"reindex_needed": false,
"last_reindexed_at": "2019-08-24T14:15:22Z"
}
],
"auto_extraction_performed": false
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}