464 Commits

Author SHA1 Message Date
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
Mohammad Mazraeh
341417e636
add tolerance for empty choices (#4311)
* add tolerance for empty choices

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>

* address pr comments

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>

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

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

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

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

* address pr comments

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>

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

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

* Update _openai_client.py

---------

Signed-off-by: Mohammad Mazraeh <mazraeh.mohammad@gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-11-25 09:06:35 -05: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
Victor Dibia
0ff1687485
Add UserProxyAgent in AgentChat API (#4255)
* initial addition of a user proxy agent in agentchat, related to #3614

* fix typing/mypy errors

* format fixes

* format and pyright checks

* update, add support for returning handoff message, add tests

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-11-23 19:24:24 -08:00
Thomas Lin
c9835f3b52
Update README.md - add more information about using Azure OpenAI services (#4253)
* Update README.md

Add more information about using Azure OpenAI services

* Update README.md

Adjust the formatting to improve readability of the steps, making them easier to follow.

---------

Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-11-23 18:56:28 -05: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
Thai Nguyen
0b5eaf1240
Agent name termination (#4123) 2024-11-23 07:07:21 -08: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
Gerardo Moreno
232068a245
Add system msg when calling inside the assistant tool loop (#4308) (#4309) 2024-11-22 06:05:52 -08: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
Griffin Bassman
e037596228
typo: agbench readme (#4302) 2024-11-21 19:17:30 -05:00
Eric Zhu
6e4609a76e
External termination condition (#4294) 2024-11-21 03:25:53 -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
Gerardo Moreno
8593b7df9f
Console to return last processed message (#4279)
* Console to return last processed (#4277)

* Preserve input generator type

* Add tests

* format

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-20 12:34:13 -05:00
Ryan Sweet
1e3b765e3a
.net changes to re-enable xlang support, add subscription apis (#4159)
* add subscription response

* fix send subscription response

* add register agent type response

* adding a test

* working on shaping up a test

* appsettins update for backend

* another appsettings

* fixup aspire hosting

* enable AGENT_HOST var from aspire

* add SendMessageAsync

* remove broken test

* test compiles and runs but is not (yet) correct

* subscriptions grain wireup.

* temp assert true.

* remove DI for SubscriptionGrain

* add xlang python code

* add subscription response

* rebond

* Update to .NET 9.0

* Fix Backend project SDK

* Package updates

* get RegisterAgentTypeRequest working

* fix exceptions

* add error handling for requests

* whoops

* send cloud event message type

* processing cloudevents

* trying tosend proto data - doesn't work

* trying to pack proto_data

* fix (#4238)

* pack the Message from agents_events

* format - not sure why these?

* format

* cleanup, error handling, xlang sample publishes messages that can be heard by .NET and vice versa

* format

* sdk version

* sdk vers

* net8

* back to net8

* remove netstandard2

* fix used

* remove unused

* more cleanup

* remove unneeded package

* I'm terrible at writing tests

* deserialize the cloud events and sent them as events

* comment

* cleanup

* await

* Delete dotnet/samples/Hello/Backend/Backend.csproj

unneeded change

* whoops

* merge main python back into here

* revert back to local

* revert some of the helloAgents changes.

* [.NET] Add happy path test for in-memory agent && Simplify HelloAgent example && some clean-up in extension APIs (#4227)

* add happy path test

* remove unnecessary namespace

* fix build error

* Update AgentBaseTests.cs

* revert changes

---------

* fix busted merge from main

* addressing review comments

* make internal

* case sensitive rename step 1

* case sensitive rename step 2

* remove!

---------

Co-authored-by: Peter Chang <petchang@microsoft.com>
Co-authored-by: Reuben Bond <reuben.bond@gmail.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-11-19 11:00:48 -08: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
Leonardo Pinheiro
df32d5e1d1
OpenAI Assistants Agent (#4131)
* initial assistant client draft

* expose assistants client

* initial openai assistant agentchat draft

* update file search

* add delete methods and fix typing

* add tool execution

* fix tool call and add docstring

* abstract tools and support thread management

* add tests

* removed unused typevars

* add unsaved test changes

* test typing fixes

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
2024-11-19 09:56:15 +10: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
1bf5fbb67b
Add API docs for builtin clients (#4232)
* Add API docs for builtin clients

* Address feedbacks

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-17 21:33:33 -05:00
Victor Dibia
44640e29a3
Fix Import Issue in AGS, Remove InnerMessage import from agentchat.messages (#4246)
* fix import issue related to agentchat update #4245

* update uv lock file
2024-11-17 12:04:55 -08:00
dependabot[bot]
fa1d08005e
Bump cross-spawn in /python/packages/autogen-studio/frontend (#4228)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.5.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.5)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-16 17:15:11 -08: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
Eric Zhu
d213c1c061
Remove quotes from TERMINATE in assistant agent's default system message (#4231) 2024-11-15 23:25:48 -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
Victor Dibia
2997c27d1b
Add Human Input Mode in AGS (#4210)
* add react-flow

* update tutorial, some ui improvement for agent thread layout

* v1 for interactive viz for agent state

* add Ui visualization of message based transitions

* minor updates

* fix node edges, support visualization of self loops

* improve edges and layout, add support for selector group chat prompt

* minor ui tweaks

* ui and layout updates

* ugrade dependencies to fix dependabot scan errors

* persist sidebar, enable contentbar title mechanism #4191

* add support for user proxy agent, support human in put mode. #4011

* add UI support for human input mode via a userproxy agent  #4011

* version update

* fix db initialization bug

* support for human input mode in UI, fix backend api route minor bugs

* update pyproject toml and uv lock

* readme update, support full screen mode for agent visualiation

* update uv.lock
2024-11-15 14:51:57 -08:00
Jack Gerrits
d55e68fc29
Support iterm inline image protocol in console output (#4200)
* Support iterm inline image protocol in console output

* fix lint

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-15 16:26:18 -05:00
Victor Dibia
908ed8c60f
Add agentchat to uv workspace (#4223)
Add agentchat to uv workspace
2024-11-15 14:40:03 -05: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
Gerardo Moreno
8d89500255
Timeout Termination (#4038) (#4214)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-15 10:12:45 -08: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
Thomas Lin
88229513e5
Update README.md (#4205)
* Update README.md

Should it be "Azure openAI service" ?

* Update README.md with links

---------

Co-authored-by: Hussein Mozannar <hssein.mzannar@gmail.com>
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
2024-11-14 21:37:20 -08: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
afourney
4073dd4efb
Have Console print multimodal messages nicely. (#4179) 2024-11-13 21:06:55 -08:00
Hussein Mozannar
36b822cf8b
Fix lazy init websurfer (#4178)
* lazy init set

* format
2024-11-13 20:19:48 -08:00
afourney
a27a130b45
Initial work on ledger orchestrator. (#4164)
* Initial work on magentic-one orchestrator port.
2024-11-13 18:51:41 -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
Hussein Mozannar
317d5d03ec
Websurfer Refactor (#4165)
* first commit

* use_ocr flag

* initial refactor

* test

* small fixes

* adding animations, in progress

* red boundary animations

* add hover tool

* fix timeout time - reduces a lot of errors

* put prompts in separate file

* prompt organize

* add cursor animation

* format and checks pass

* added check for reset
2024-11-13 11:41:36 -08:00
Mehdi Baneshi
16463a8a98
Update topic-and-subscription.md (#4168) 2024-11-13 10:33:47 -05:00