Hi everyone!
We are unable to attach new files to old threads.
We update the thread using this method: /docs/api-reference/threads/modifyThread
We pass the vector store thread with all the files, but if you request this thread using the /docs/api-reference/threads/getThread method, then there is no information about the linked files\vector stores.
object(Bitrix\Main\Result)#2409 (3) {
["isSuccess":protected]=>
bool(true)
["errors":protected]=>
object(Bitrix\Main\ErrorCollection)#2406 (1) {
["values":protected]=>
array(0) {
}
}
["data":protected]=>
array(1) {
["result"]=>
array(5) {
["id"]=>
string(31) "thread_1gTAhBlG0siDKaMxhMOKjkdr"
["object"]=>
string(6) "thread"
["created_at"]=>
int(1719307663)
["metadata"]=>
array(0) {
}
["tool_resources"]=>
array(2) {
["file_search"]=>
array(1) {
["vector_store_ids"]=>
array(1) {
[0]=>
string(27) "vs_seyjYbX3Ydkh2OPBEypMJwQn"
}
}
}
}
}
this is the answer after updating the thread with the method /docs/api-reference/threads/modifyThread
We see that the vector store is attached
in the thread itself you can also see that there are files. But at the same time, the Assistant responds in dialogue with the user that he does not have access to these files.