Skip to content

Commit b37f8a8

Browse files
committed
updating python code
1 parent 59402ef commit b37f8a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

articles/ai-services/agents/how-to/tools/code-interpreter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ project_client.agents.delete_file(file.id)
175175
print("Deleted file")
176176

177177
# 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)
179179
print(f"Messages: {messages}")
180180

181181
# get the most recent message from the assistant

articles/ai-services/agents/includes/quickstart-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ with project_client:
109109
print(f"Run failed: {run.last_error}")
110110

111111
# 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)
113113
print(f"Messages: {messages}")
114114

115115
# Get the last message from the sender

0 commit comments

Comments
 (0)