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
* [AI] [Agents] add is_valid_connection_id check to connection tool init
* Howie/async func b2 (#41349)
* use as* `asyncio.gather` is used to make function tool calls in paral… (#41311)
* use as* `asyncio.gather` is used to make function tool calls in parallel for `async` scenario.
* Fixed version
* update
* update version
* run black
* fix change_context usages (#41362)
* fixing tracing for streaming when not using event handler (#41424)
* fixing tracing for streaming when not using event handler
* fixing mypy warnings
* fixes
* changelog
* Update CHANGELOG.md
* Howie/samples with proj client (#41426)
* Update samples with project client
* more samples
* update samples
* UPDATE
* update
* change tooling samples
* black and readme update
* update pip install
* Update changelog
* change is_valid_connection_id to _is_valid_connection_id and run black
* fixed lint
* revert dev req
* Update README.md
* update
* fix readme
* added a new sample
* Update CHANGELOG.md with new release date
---------
Co-authored-by: Howie Leung <[email protected]>
Co-authored-by: Liudmila Molkova <[email protected]>
Co-authored-by: M-Hietala <[email protected]>
To process your message, you can use `runs.create`, `runs.create_and_process`, or `runs.stream`.
909
920
910
-
`create_run` requests the Agent to process the message without polling for the result. If you are using `function tools` regardless as `toolset` or not, your code is responsible for polling for the result and acknowledging the status of `Run`. When the status is `requires_action`, your code is responsible for calling the function tools. For a code sample, visit [`sample_agents_functions.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-agents/samples/agents_tools/sample_agents_functions.py).
921
+
`runs.create` requests the Agent to process the message without polling for the result. If you are using `function tools`, your code is responsible for polling for the result and acknowledging the status of `Run`. When the status is `requires_action`, your code is responsible for calling the function tools. For a code sample, visit [`sample_agents_functions.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-agents/samples/agents_tools/sample_agents_functions.py).
911
922
912
923
Here is an example of `runs.create` and poll until the run is completed:
913
924
@@ -925,10 +936,20 @@ while run.status in ["queued", "in_progress", "requires_action"]:
925
936
926
937
<!-- END SNIPPET -->
927
938
928
-
To have the SDK poll on your behalf and call `function tools`, use the `create_and_process` method. Note that `function tools` will only be invoked if they are provided as `toolset` during the `create_agent` call.
939
+
To have the SDK poll on your behalf and call `function tools`, supply your function implementations through `enable_auto_function_calls` along with `runs.create_and_process` method .
@@ -937,9 +958,9 @@ run = agents_client.runs.create_and_process(thread_id=thread.id, agent_id=agent.
937
958
938
959
<!-- END SNIPPET -->
939
960
940
-
With streaming, polling need not be considered. If `function tools`are provided as `toolset` during the `create_agent`call, they will be invoked by the SDK.
961
+
With streaming, polling need not be considered. If `function tools`were added to the agents, you should decide to have the function tools called manually or automatically. Please visit [`manual function call sample`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-agents/samples/agents_streaming/sample_agents_stream_eventhandler_with_functions.py) or [`automatic function call sample`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-agents/samples/agents_streaming/sample_agents_stream_iteration_with_toolset.py).
0 commit comments