Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/ai/azure-ai-projects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The AI Projects client library (in preview) is part of the Microsoft Foundry SDK, and provides easy access to
resources in your Microsoft Foundry Project. Use it to:

* **Create and run Agents** using methods on methods on the `.agents` client property.
* **Create and run Agents** using methods on the `.agents` client property.
* **Enhance Agents with specialized tools**:
* Agent Memory Search
* Agent-to-Agent (A2A)
Expand Down Expand Up @@ -319,7 +319,7 @@ Web Search tool uses Grounding with Bing, which has additional costs and terms:

```python
tool = WebSearchTool(
user_location=WebSearchApproximateLocation(type="approximate", country="GB", city="London", region="London")
user_location=WebSearchApproximateLocation(country="GB", city="London", region="London")
)
```

Expand Down
13 changes: 7 additions & 6 deletions sdk/ai/azure-ai-projects/azure/ai/projects/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11803,9 +11803,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class WebSearchApproximateLocation(_Model):
"""Web search approximate location.

:ivar type: The type of location approximation. Always ``approximate``. Default value is
"approximate".
:vartype type: str
:ivar country:
:vartype country: str
:ivar region:
Expand All @@ -11814,20 +11811,23 @@ class WebSearchApproximateLocation(_Model):
:vartype city: str
:ivar timezone:
:vartype timezone: str
:ivar type: The type of location approximation. Always ``approximate``. Required. Default value
is "approximate".
:vartype type: str
"""

type: Optional[Literal["approximate"]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""The type of location approximation. Always ``approximate``. Default value is \"approximate\"."""
country: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
region: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
city: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
timezone: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
type: Literal["approximate"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""The type of location approximation. Always ``approximate``. Required. Default value is
\"approximate\"."""

@overload
def __init__(
self,
*,
type: Optional[Literal["approximate"]] = None,
country: Optional[str] = None,
region: Optional[str] = None,
city: Optional[str] = None,
Expand All @@ -11843,6 +11843,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None:

def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
self.type: Literal["approximate"] = "approximate"


class WebSearchConfiguration(_Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Customer data will flow outside the Azure compliance boundary.
Learn more:
https://learn.microsoft.com/azure/ai-foundry/agents/how-to/tools/bing-tools
DESCRIPTION:
This sample demonstrates how to create an AI agent with Bing Custom Search capabilities
using the BingCustomSearchPreviewTool and synchronous Azure AI Projects client. The agent can search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Customer data will flow outside the Azure compliance boundary.
Learn more:
https://learn.microsoft.com/azure/ai-foundry/agents/how-to/tools/bing-tools

DESCRIPTION:
This sample demonstrates how to create an AI agent with Bing grounding capabilities
using the BingGroundingTool and synchronous Azure AI Projects client. The agent can search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
):
# [START tool_declaration]
tool = WebSearchTool(
user_location=WebSearchApproximateLocation(type="approximate", country="GB", city="London", region="London")
user_location=WebSearchApproximateLocation(country="GB", city="London", region="London")
)
# [END tool_declaration]
# Create Agent with web search tool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Customer data will flow outside the Azure compliance boundary.
Learn more:
https://learn.microsoft.com/azure/ai-foundry/agents/how-to/tools/web-search

DESCRIPTION:
This sample demonstrates how to run Prompt Agent operations
using the Web Search Preview Tool and a synchronous client.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Customer data will flow outside the Azure compliance boundary.
Learn more:
https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/tools/web-search?view=foundry
DESCRIPTION:
Demonstrates Prompt Agent operations that use the Web Search Tool configured
with a Bing Custom Search connection. The agent runs synchronously and
Expand Down