@@ -186,11 +186,33 @@ def mock_responses():
186186 "created_at" : timestamp ,
187187 "metadata" : {},
188188 },
189+ "threads_create_with_metadata" : {
190+ "id" : "thread_123" ,
191+ "object" : "thread" ,
192+ "created_at" : timestamp ,
193+ "metadata" : {"user_id" : "123" , "session" : "abc" },
194+ },
195+ "threads_create_with_thread_id" : {
196+ "id" : "custom_thread_456" ,
197+ "object" : "thread" ,
198+ "created_at" : timestamp ,
199+ "metadata" : {},
200+ },
201+ "threads_create_with_messages" : {
202+ "id" : "thread_123" ,
203+ "object" : "thread" ,
204+ "created_at" : timestamp ,
205+ "metadata" : {},
206+ "messages" : [
207+ {"role" : "user" , "content" : "Hello" },
208+ {"role" : "assistant" , "content" : "Hi there!" },
209+ ],
210+ },
189211 "threads_update" : {
190212 "id" : "thread_123" ,
191213 "object" : "thread" ,
192214 "created_at" : timestamp ,
193- "metadata" : {"updated " : "true " },
215+ "metadata" : {"user_id " : "123" , "session" : "abc " },
194216 },
195217 "threads_get" : {
196218 "id" : "thread_123" ,
@@ -244,7 +266,7 @@ def mock_responses():
244266 "embed" : [[0.1 , 0.2 , 0.3 ], [0.4 , 0.5 , 0.6 ]],
245267 "chunker" : ["First chunk" , "Second chunk" , "Third chunk" ],
246268 "parser" : {
247- "document_name " : "test.pdf" ,
269+ "documentName " : "test.pdf" ,
248270 "content" : "Parsed document content from test.pdf" ,
249271 },
250272 # Agent run response (similar to pipe run)
0 commit comments