230 Commits

Author SHA1 Message Date
Jack Gerrits
df183be35a
Add special topic for agent direct messaging (#4385)
* Add special topic for agent direct messaging

* move to base

* update sub counts

* Fix tests
2024-11-26 17:01:25 -05:00
Jack Gerrits
cf80b1bc14
Add request_id parameter (#4384) 2024-11-26 16:09:14 -05:00
Jack Gerrits
1f07e5bea5
Add type prefix subscription (#4383)
* Add type prefix subscription

* update example

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-26 15:58:26 -05:00
peterychang
74bcd5e0f6
add protobuf serialization test (#4224)
* add protobuf serialization test

* proto file regeneration

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Mohammad Mazraeh <Mazraeh.Mohammad@Gmail.com>
2024-11-26 15:37:40 -05:00
Jack Gerrits
1a02e2ba4b
Update version to dev7 (#4359)
* Update version to dev7

* update other references
2024-11-25 14:09:41 -08:00
Jack Gerrits
7c1cabf07e
Add tool to check example in docstrings (#4353)
* Add tool to check example in docstrings

* update lock

* add task

* add ignored message

* add example check CI
2024-11-25 16:10:45 -05:00
Jack Gerrits
6c8b656588
Fix examples in docstrings (#4356)
* Fix examples in docstrings

* formatting

* Update python/packages/autogen-ext/src/autogen_ext/models/_reply_chat_completion_client.py

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update python/packages/autogen-ext/src/autogen_ext/models/_reply_chat_completion_client.py

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update python/packages/autogen-ext/src/autogen_ext/agents/_openai_assistant_agent.py

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update python/packages/autogen-ext/src/autogen_ext/agents/_openai_assistant_agent.py

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update python/packages/autogen-ext/src/autogen_ext/models/_reply_chat_completion_client.py

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update python/packages/autogen-ext/src/autogen_ext/models/_reply_chat_completion_client.py

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Formattinggp

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 16:07:45 -05:00
Jack Gerrits
8347881776
Fix intervention handler none check (#4351)
* Fix none check

* fix func

* fmt, lint

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 15:50:52 -05:00
Jack Gerrits
9b967fc79a
Update pyright and mypy (#4348)
* Update pyright and mypy

* fmt
2024-11-25 15:08:36 -05:00
Jack Gerrits
6bdd9c83b0
Add note for min python version (#4347)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 10:19:57 -08:00
Jack Gerrits
9209b2ffc1
Remove duplicate model info (#4346)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 10:17:24 -08:00
Gerardo Moreno
1b2d42d420
Termination Conditions Tutorial (#4334) (#4339)
* Termination Conditions Tutorial (#4334)

* Fix format

* Update python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb

* Update python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb

* Update python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb

* update docs

* update doc

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-25 10:09:06 -08:00
Jack Gerrits
b2ae4d1203
Add warnings for deprecated azure oai config changes (#4317)
* Add warnings for deprecated azure oai config changes

* Update docs and usages, simplify capabilities
2024-11-25 09:34:52 -08:00
Kartik Ramesh
08383445fd
Fix typo in Agent Runtime Environments doc (#4336)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-24 20:52:51 -05:00
Jack Gerrits
01dc56b244
Make grpc an optional dependency (#4315)
* Make grpc an optional dependency

* add note to the runtime docs

* update version

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-23 22:36:30 -08:00
Gerardo Moreno
02ef110e10
Selector Group Chat Tutorial (#4112) (#4326)
* Selector Group Chat Tutorial (#4112)

* update doc

* update

* Add custom selector function

* Update doc

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-23 21:36:32 -08:00
Pramod Goyal
caeab68f4b
task: added warning when none is called in intervention handler (#4149)
* 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>
2024-11-23 18:26:37 -05:00
Leonardo Pinheiro
ac53961bc8
Delete autogen-ext refactor deprecations (#4305)
* delete files and update dependencies

* add explicit config exports

* ignore mypy error on nb

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-22 11:29:39 -05:00
Eric Zhu
3c1ec7108a
Misc doc fixes (#4300)
* Misc doc fixes

* Update _console.py

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-21 19:24:12 -05:00
Gerardo Moreno
6ffa42ba44
Swarm Tutorial (#4146)
* 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>
2024-11-20 21:03:39 -05:00
Eric Zhu
2b7658a9da
Move openai assistant agent to autogen-ext; add on_messages_stream (#4268) 2024-11-19 01:42:11 -05:00
Kapil Sachdeva
b8ea088e33
fix - stop using the deprecated register api in chess_game sample (#4265) 2024-11-18 22:48:00 -05:00
Eric Zhu
f1daff1582
AgentChat task message type and group chat state validation for Swarm (#4230)
* 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
2024-11-18 11:46:20 -05:00
Eric Zhu
5da24e51e0
Console pretty print for on_messages_stream (#4239)
* Console pretty print for on_messages_stream

* Update doc

* Update docs
2024-11-16 14:03:58 -08:00
Eric Zhu
4aec53c36f
Improve agentchat tutorial (#4233) 2024-11-16 09:01:38 -08:00
Mohammad Mazraeh
196c6169fc
Feat add UI streaming to distributed group chat (#4181)
* 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>
2024-11-15 19:51:04 -08:00
Jean-Marc Le Roux
cac411b56a
Fix broken $ref instances in tool JSON schemas (#4201)
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>
2024-11-15 13:40:46 -05:00
Eric Zhu
78019dd2dc
Fix-swarm-handoff (#4198)
* fix select speaker for swarm

* Fix max-turn = 1 for swarm
2024-11-15 10:02:59 -08:00
Krit Kasemosoth
762f6dc723
Update - add import for missing modules in the example codes (#4209)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-15 11:46:37 -05:00
Krit Kasemosoth
0807f60cba
Update - add import for Console (#4218) 2024-11-15 11:32:00 -05:00
Jack Gerrits
2b565713d0
Make save/load state for agent async (#4195) 2024-11-15 10:38:01 -05:00
tsinggggg
8a4c928efa
feat: watsonx support (#4130)
* feat: watsonx support

* fix: addressing comments

* fix: addressing comments

* fix: addressing comments

* Delete python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/watsonx-client-integration.md

* Update python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/index.md

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-14 20:44:26 -08:00
Jack Gerrits
7628a4e6ac
Ensure all imports present for example (#4204)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-14 20:25:15 -08:00
Jack Gerrits
ea3a1c94e2
Add table for community packages (#4194) 2024-11-14 15:51:06 -08:00
Jack Gerrits
9ec7ecc29c
add Autogen 0.2 to packages page (#4193) 2024-11-14 15:30:18 -05:00
Li Jiang
c513f969a3
Replace AGNext with AutoGen (#4184) 2024-11-14 09:21:29 -08:00
Eric Zhu
233e482c7b
Max turn parameter for group chats (#4143)
* Max turn parameter for group chats

* Add note no usage
2024-11-13 15:10:04 -08:00
hasamm90
ac4091acf4
Update quickstart.ipynb (#4170)
Removed "can", making it: which defines the messages that are passed...

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-13 16:09:56 -05:00
Mehdi Baneshi
16463a8a98
Update topic-and-subscription.md (#4168) 2024-11-13 10:33:47 -05:00
Jack Gerrits
913c052a7d
Fix topic name for community samples (#4156) 2024-11-12 16:08:25 -08:00
Gerardo Moreno
3b8d0ddb67
Various Additions to the Documentation (#4139)
* Various docs improvements

* Update python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/command-line-code-executors.ipynb

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-11 15:23:25 -05:00
peterychang
0afde6da69
Protobuf serializer (#4137)
* protobuf serialization in python

* remove test code

* clarify TODO
2024-11-11 14:20:15 -05:00
Eric Zhu
e27c740961
dev6 (#4129) 2024-11-11 00:48:05 -05:00
Eric Zhu
4786f189bc
Handoff termination and show how to use it for asking user input (#4128)
* Handoff termination and show how to use it for asking user input

* lint
2024-11-11 00:38:52 -05:00
Eric Zhu
9f175089c5
Introduction to Teams for AgentChat (#4120)
* Add teams section

* wip don't merge

* Merge remote-tracking branch 'origin/main' into agentchat-team-tutorial

* update instruction about termination reset

* edit

* more guidline for script
2024-11-10 20:39:06 -08:00
Eric Zhu
1cc0f4f7c5
dev5 (#4124) 2024-11-10 21:42:22 -05:00
Eric Zhu
8f7c717149
reset --> on_reset :D (#4121) 2024-11-10 18:28:20 -08:00
Eric Zhu
12becdddb1
Update agentchat tutorial, refactor content (#4118)
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.
2024-11-09 19:07:39 -08:00
Eric Zhu
f40b0c2730
Add Console function to stream result to pretty print console output (#4115) 2024-11-08 19:02:19 -08:00
Eric Zhu
111e69142b
Fix worker sample in core (#4104) 2024-11-08 12:18:07 -08:00