File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
articles/ai-services/agents Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ project_client.agents.delete_file(file.id)
175
175
print (" Deleted file" )
176
176
177
177
# print the messages from the agent
178
- messages = project_client.agents.get_messages (thread_id = thread.id)
178
+ messages = project_client.agents.list_messages (thread_id = thread.id)
179
179
print (f " Messages: { messages} " )
180
180
181
181
# get the most recent message from the assistant
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ with project_client:
109
109
print (f " Run failed: { run.last_error} " )
110
110
111
111
# Get messages from the thread
112
- messages = project_client.agents.get_messages (thread_id = thread.id)
112
+ messages = project_client.agents.list_messages (thread_id = thread.id)
113
113
print (f " Messages: { messages} " )
114
114
115
115
# Get the last message from the sender
You can’t perform that action at this time.
0 commit comments