Skip to content

Commit a7d409d

Browse files
authored
Update bing-grounding.md
1 parent 536e881 commit a7d409d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

articles/ai-services/agents/how-to/tools/bing-grounding.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ Create a run and observe that the model uses the Grounding with Bing Search tool
254254
run = project_client.agents.create_and_process_run(thread_id=thread.id, assistant_id=agent.id)
255255
print(f"Run finished with status: {run.status}")
256256

257+
# Retrieve run step details to get Bing Search query link
258+
run_steps = project_client.agents.list_run_steps(run_id=run.id, thread_id=thread.id)
259+
run_steps_data = run_steps['data']
260+
print(f"Last run step detail: {run_steps_data}")
261+
257262
if run.status == "failed":
258263
print(f"Run failed: {run.last_error}")
259264

0 commit comments

Comments
 (0)