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
Copy file name to clipboardExpand all lines: sdk/ai/azure-ai-projects/CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,24 @@
1
1
# Release History
2
2
3
+
## 1.0.0b9 (2025-04-16)
4
+
5
+
### Features added
6
+
7
+
* Utilities to load prompt template strings and Prompty file content
8
+
* Added BingCustomSearchTool class with sample
9
+
* Added list_threads API to agents namespace
10
+
* Added image input support for agents create_message
11
+
12
+
### Sample updates
13
+
14
+
* Added `project_client.agents.enable_auto_function_calls(toolset=toolset)` to all samples that has `toolcalls` executed by `azure-ai-project` SDK
15
+
* New BingCustomSearchTool sample
16
+
* New samples added for image input from url, file and base64
17
+
18
+
### Breaking Changes
19
+
20
+
Redesigned automatic function calls because agents retrieved by `update_agent` and `get_agent` do not support them. With the new design, the toolset parameter in `create_agent` no longer executes toolcalls automatically during `create_and_process_run` or `create_stream`. To retain this behavior, call `enable_auto_function_calls` without additional changes.
Also notices that if you use asynchronous client, you use `AsyncToolSet` instead. Additional information related to `AsyncFunctionTool` be discussed in the later sections.
297
+
Also notice that if you use the asynchronous client, use `AsyncToolSet` instead. Additional information related to `AsyncFunctionTool` be discussed in the later sections.
294
298
295
299
Here is an example to use `tools` and `tool_resources`:
# Create agent with AI search tool and process assistant run
@@ -513,12 +513,7 @@ for message in messages.data:
513
513
514
514
#### Create Agent with Function Call
515
515
516
-
You can enhance your Agents by defining callback functions as function tools. These can be provided to `create_agent` via either the `toolset` parameter or the combination of `tools` and `tool_resources`. Here are the distinctions:
517
-
518
-
-`toolset`: When using the `toolset` parameter, you provide not only the function definitions and descriptions but also their implementations. The SDK will execute these functions within `create_and_run_process` or `streaming` . These functions will be invoked based on their definitions.
519
-
-`tools` and `tool_resources`: When using the `tools` and `tool_resources` parameters, only the function definitions and descriptions are provided to `create_agent`, without the implementations. The `Run` or `event handler of stream` will raise a `requires_action` status based on the function definitions. Your code must handle this status and call the appropriate functions.
520
-
521
-
For more details about calling functions by code, refer to [`sample_agents_stream_eventhandler_with_functions.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/sample_agents_stream_eventhandler_with_functions.py) and [`sample_agents_functions.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/sample_agents_functions.py).
516
+
You can enhance your Agents by defining callback functions as function tools. These can be provided to `create_agent` via either the `toolset` parameter or the combination of `tools` and `tool_resources`.
522
517
523
518
For more details about requirements and specification of functions, refer to [Function Tool Specifications](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/FunctionTool.md)
524
519
@@ -529,6 +524,7 @@ Here is an example to use [user functions](https://github.com/Azure/azure-sdk-fo
Notice that if `enable_auto_function_calls` is called, the SDK will invoke the functions automatically during `create_and_process_run` or streaming. If you prefer to execute them manually, refer to [`sample_agents_stream_eventhandler_with_functions.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/sample_agents_stream_eventhandler_with_functions.py) or
The AI agent leverages Azure Functions triggered asynchronously via Azure Storage Queues. To enable the agent to perform Azure Function calls, you must set up the corresponding `AzureFunctionTool`, specifying input and output queues as well as parameter definitions.
MessageInputTextBlock(text="Hello, what is in the image?"),
1059
+
MessageInputImageUrlBlock(image_url=url_param),
1060
+
]
1061
+
1062
+
# Create the message
1063
+
message = project_client.agents.create_message(
1064
+
thread_id=thread.id,
1065
+
role="user",
1066
+
content=content_blocks
1067
+
)
1068
+
```
1069
+
969
1070
#### Create Run, Run_and_Process, or Stream
970
1071
971
1072
To process your message, you can use `create_run`, `create_and_process_run`, or `create_stream`.
@@ -988,7 +1089,7 @@ while run.status in ["queued", "in_progress", "requires_action"]:
988
1089
989
1090
<!-- END SNIPPET -->
990
1091
991
-
To have the SDK poll on your behalf and call `function tools`, use the `create_and_process_run` method. Note that `function tools` will only be invoked if they are provided as `toolset` during the `create_agent` call.
1092
+
To have the SDK poll on your behalf and call `function tools`, use the `create_and_process_run` method.
0 commit comments