mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
aeda658f18
The assistant could not read a file the user attached: the bytes were gone after the request, the thread only held the file's name, and read_trip_file stays denied because it would send any document of the trip to the provider. A new server tool, read_attached_file, reads only the files attached in this conversation by this user; any other id is answered "No such attachment in this conversation.", whoever it belongs to. It is offered in a trip turn whose thread holds a file with text. The first read of a file is held as a change card that names the file and the model and host its text would go to; once the user agrees, the agreement is kept on the attachment and later reads run at once. The text reaches the model through the history and, for a later read, as a tool answer only the model gets (AgentToolRun.modelText): no message part, stream chunk, shared answer or client store ever carries it. The model is told each kept file's attachment id, and the standing instructions say to read the file when the user wants to work with it, to propose a booking found in it through create_reservation and then to offer keeping the file with it. The card's verb, its "Sent to" row and the step's name are new keys in all 27 locales.