* task: added warning when none is called in intervention handler
* add leading underscore to indicate private to _warn_if_none method in intervention.py
* address comment of returning Any for result in intervention.py
* Update intervention.py to remove redundant name change
* Format and lint
---------
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
* Swarm Tutorial
* Include 2 swarm example, add svgs
* Include latest Swarm changes & Eric changes
* Update docs to remove UserProxyAgent
* Include latest Console changes
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
* task can be ChatMessage; add group chat state validation step, and address swarm state valiation; change handling of start and reset to RPC to capture any error.
* Update tutorial note
* add ui streaming to distributed group chat example
Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
* fix pyright error after updating dependencies
Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
---------
Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
When the tool expects complex inputs that require nested models, pydantic will generate a JSON Schema that will include references to other schemas using the `$ref` keyword (cf https://json-schema.org/understanding-json-schema/structuring#dollarref).
But the `$ref` keyword is not supported by OpenAI.
This fix:
1. Resolves the references and inlines the corresponding schemas.
2. Removes the then useless root `$defs` field of the JSON schema to save tokens.
Co-authored-by: Jean-Marc Le Roux <contact@jmlx.io>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Resolves Tutorial Chapter for Custom ChatAgent #4114 -- updated tutorial chapter on agents and custom agents
Update README example to use tool call
Added "Models" section in AgentChat tutorial.
Added place holder for Tutorial Chapter for Swarm #4113.
* AgentChat pause and resume a task
Resolves#3859
* Add
* Update usage
* Update usage
* WIP to address stateful group chat
* Refactor group chat to add reset and flags for running
* documentation
* Agentchat refactor
* Move termination stop message to a separate field in task result
* Update quick start example
* Use string stop reason instead of stop message in task result for simpler API
* Use main function
* Remove isinstance check from FunctionTool (#3987)
* Move __init__ Args to class docstring
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>