I'm using Azure Ai Search as a tool. Can you tell me how to configure a @search.score threshold?
ai_search = AzureAISearchTool(
index_connection_id=conn_id,
index_name=index_name,
query_type=AzureAISearchQueryType.VECTOR_SEMANTIC_HYBRID,
top_k=6,
)
Create agent with AI search tool and process agent run
with agents_client:
agent = agents_client.create_agent(
model="gpt-4o",
name="agent-sdk-kk-with-ai-search",
instructions="...",
tools=ai_search.definitions,
tool_resources=ai_search.resources,
)
thread = agents_client.threads.create()
message = agents_client.messages.create(
thread_id=thread.id,
role="user",
content="Tell me something about ....."
)