You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instructions=f"You are a helpful support agent. Use the provided function any time the prompt contains the string 'What would foo say?'. When you invoke the function, ALWAYS specify the output queue uri parameter as '{storage_service_endpoint}/azure-function-tool-output'. Always responds with \"Foo says\" and then the response from the tool.",
73
+
tools=azure_function_tool.definitions,
74
+
)
75
+
print(f"Created agent, agent ID: {agent.id}")
76
+
# [END create_agent_with_azure_function_tool]
77
+
# </agent_creation>
78
+
79
+
# <thread_management>
80
+
# Create a thread
81
+
thread=project_client.agents.create_thread()
82
+
print(f"Created thread, thread ID: {thread.id}")
83
+
84
+
# Create a message
85
+
message=project_client.agents.create_message(
86
+
thread_id=thread.id,
87
+
role="user",
88
+
content="What is the most prevalent element in the universe? What would foo say?",
0 commit comments