Commit Graph

3414 Commits

Author SHA1 Message Date
Xiaoyun Zhang
b021e44540 [.Net] Agent as service: Run an IAgent as openai chat completion endpoint (#2633)
* update

* add test

* clean up

* update

* Delete dotnet/src/AutoGen.Server/AutoGen.Service.csproj.user

* implement streaming

* add sample project

* rename AutoGen.Service to AutoGen.WebAPI

* rename AutoGen.Service to AutoGen.WebAPI
2024-07-11 16:34:15 +00:00
Xiaoyun Zhang
4e95630fa9 [.Net] fix #2695 and #2884 (#3069)
* add round robin orchestrator

* add constructor for orchestrators

* add tests

* revert change

* return single orchestrator

* address comment
2024-07-10 22:12:42 +00:00
afourney
5996b452eb TeamOne handle multimodal console (#200)
* Added ability to print multimodal messages to console.

* Fixed hatch error
2024-07-10 00:01:13 -07:00
afourney
14628f2ae0 add ParametersSchema to tools exports (#199) 2024-07-09 21:43:16 +00:00
gagb
4553bf9054 Move file surfer to use baseagent (#198)
* Move file surfer to use baseagent

* Remove unused code

* Fix hatch err
2024-07-09 21:40:07 +00:00
afourney
ea2fcc28c3 Removes a redundant time field. (#197) 2024-07-09 14:02:09 -07:00
afourney
699f024a6d Adds a standard logging / log-printing class to TeamOne (#194)
* Added initial code for TeamOne utils.

* Fixed hatch errors.

* Updated examples.

* Fixed more hatch errors.

* examples/example_coder.py

* Added standard logging for TeamOne

* Read time from log record.
2024-07-09 13:51:05 -07:00
Jack Gerrits
05e72084e8 Allow model client to accept the tool schema directly (#196) 2024-07-09 16:44:58 -04:00
Jack Gerrits
2191b3144b Fix double await (#195) 2024-07-09 16:27:26 -04:00
afourney
f7357499be Teamone utils (#192)
* Added initial code for TeamOne utils.

* Fixed hatch errors.

* Updated examples.

* Fixed more hatch errors.

* Improve readme

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-07-09 17:46:55 +00:00
afourney
beada0279c Initial proof-of-concept for TeamOne BaseAgent class (#181)
* Initial proof-of-concept for TeamOne BaseAgent class

* Fixed most hatch errors.

* Handle final Hatch error

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-07-08 22:36:25 +00:00
gagb
7d12c70cff Add missing file surfer dependency (#191) 2024-07-08 22:21:54 +00:00
Jack Gerrits
bf32bb67ae [Python] Specify subscriptions as strings and not types (#169)
* Add infra for message serialization

* Add message type registry to handle type registration
2024-07-08 16:45:14 -04:00
Kosta Petan
afa95d0585 add az-cli and dotnet as features to devcontainer setup (#179) 2024-07-08 14:22:01 -04:00
Zoltan Lux
f55a98f32b Demo Notebook for Using Gemini with VertexAI (#3032)
* add notebook for using Gemini with VertexAI

* add missing image

* remove part with workload identity federation

* Spelling

* Capitalisation and tweak on config note.

* autogen gemini gcp image

* fix formatting

* move gemini vertexai notebook to website/docs/topics/non-openai-models

* Adjust license

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* remove auto-generated cell

---------

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-07-07 22:11:35 +00:00
Prithvi
82903f5f89 [.Net] Update FunctionCallTemplate.tt to encode " (#3068)
* Update FunctionCallTemplate.tt

changed the desscription assigning to handle double quotes in comments and prevent the generated code from breaking.

* Added the necessary changes

Fixed handling of double quotes in descriptions within FunctionCallTemplate.tt.
Standardized newline characters to ensure consistency.
Updated test cases in FunctionCallTemplateEncodingTests to verify correct encoding of double quotes in descriptions.
Cleaned up unnecessary using directives in FunctionCallTemplateEncodingTests.
Aligned the template with the approved test output.

* test cases passing

Test cases passing like `Starting test execution, please wait...
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:     9, Skipped:     0, Total:     9, Duration: 66 ms - AutoGen.SourceGenerator.Tests.dll (net8.0)`

* Delete FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt

Deleted the ApprovalTests/FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt successfully!

* Revert "Delete FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt"

This reverts commit 7a6ea9cf0d.

---------

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-07-05 23:10:58 +00:00
Shaun
0a82b3eb76 fix: support openai service account apikey format (#3078) 2024-07-05 16:59:58 +00:00
Media
97b8e119d9 Update AutoTX Link on Gallery.json (#3082) 2024-07-04 18:26:47 +00:00
William W Wang
f211994331 Update azure_cosmos_db.md (#3043) v0.2.32 2024-07-04 15:16:29 +00:00
Qingyun Wu
0655b4341b bump version (#3073) 2024-07-04 05:09:22 +00:00
afourney
8eb8a4b14d Added user proxy. (#176)
* Added user proxy.

* Add dependency

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-07-03 17:13:24 -07:00
gagb
f82f3852d3 Update to use new src (#177) 2024-07-03 22:47:34 +00:00
Eric Zhu
5abaacc56e Update foundation chapter on runtime running (#175) 2024-07-03 15:03:24 -07:00
HRUSHIKESH DOKALA
b4a3f263b0 Cohere Client (#3004)
* initial setup for cohere client

* client update

* changes: ClintType added to the utils

* Revert "changes: ClintType added to the utils"

This reverts commit 80d6155228.

* Message conversion to Cohere, Parameter handling, cost calculation, streaming, tool calling

* Changed Groq references.

* minor fix

* tests added

* ref fix

* added in the workflows

* Fixed bug on non-streaming text generation

* fix: formatting

* Support Cohere rule for last message not USER when tool_results exist

* Added Cohere to documentation

* fixed client.py merge, removed unnecessary comments in groq.py, updated Cohere documentation, added Groq documentation

* log: ignored params

* update: custom exception added

---------

Co-authored-by: Mark Sze <mark@sze.family>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-07-03 14:33:03 +00:00
afourney
2e7c7e2d82 Cleaned up Dockerfile for agnext (#173)
Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-07-03 00:10:24 -07:00
afourney
99ecb5ec7f Added 'request_halt' flag, and fixed an orchestration bug (#174)
* Added 'request_halt' flag, and fixed an orchestration bug

* Fixed formatting errors.

* Fixed a hatch error with casting.
2024-07-03 00:04:44 -07:00
F. Hinkelmann
8133b7de22 Fix simple typo in chat-termination.ipynb (#3050) 2024-07-03 02:26:07 +00:00
gagb
9df928b73e Improve printing further (#172)
* Improve pretty printing

* Improve printing further
2024-07-02 18:09:45 -07:00
gagb
e0065cab42 Improve pretty printing (#171) 2024-07-03 00:50:08 +00:00
gagb
bcec0502d7 Numerous fixes for agbench (#170)
* Shift to new runtime API

* Add pretty printing

* Reformat

* Fix linting errors
2024-07-02 23:18:48 +00:00
Mark Sze
fbf24a5f6f Blog post for enhanced non-OpenAI model support (#2965)
* Blogpost for enhanced non-OpenAI model support

* update: quickstart with simple conversation

* update: authors details

* Added upfront text

* Added function calling, refined text. Added chess for alt-models notebook, updated examples listing.

* Added Groq to blog

* Removed acknowledgements

---------

Co-authored-by: Hk669 <hrushi669@gmail.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-02 19:28:24 +00:00
afourney
ca42b560e9 Initial work porting AutoGenBench to AGNext (#141)
* Initial check-in of agbench

* Moved agbench to intended directory.

* Removed pyautogen dependency

* moved to using process_until_idle

* Added TeamOne template.

* User TeamOne agent classes.

* migrate to hatch, move benchmarks out, add CI (#166)

* Resolve type issues (#168)

Thanks for fixing types.

* Fixed import.

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-07-02 10:58:49 -07:00
Qingyun Wu
3f1be8abcb update readme (#3057)
* update readme

* Update README.md

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>

* add notion link

---------

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-02 17:49:58 +00:00
F. Hinkelmann
8e66590a1e Fix simple typos in human-in-the-loop.ipynb (#3051) 2024-07-02 16:25:06 +00:00
Li Jiang
62792478a4 Update qdrant dependency (#3064)
* Update qdrant dependency

* Update qdrant dependency
2024-07-02 16:00:31 +00:00
Li Jiang
8c56cc7d80 Fix llama_index tests (#3063) 2024-07-02 13:55:32 +00:00
Xiaoyun Zhang
66e50618bd [.Net] Fix #3045 (#3047)
* make IStreamingMessage obsolete

* update final reply message
2024-07-01 16:52:57 +00:00
Jack Gerrits
766635394a Update send_message to be a single async operation. Add start helper to runtime to manage this (#165) 2024-07-01 11:53:45 -04:00
David Luong
80ecbf900c [.Net] Support tools for AnthropicClient and AnthropicAgent (#2944)
* Squash commits : support anthropic tools

* Support tool_choice

* Remove reference from TypeSafeFunctionCallCodeSnippet.cs and add own function in test proj
2024-06-30 23:21:34 +00:00
Julia Kiseleva
e743d4d963 Update README.md (#3025)
adding links to blogposts to increase the clarity
2024-06-30 22:00:13 +00:00
Xiaoyun Zhang
b8a47a8d42 [.Net] fix #3014 by adding local model function call in dotnet website (#3044)
* add instruction in ollama-litellm function call example

* add tutorial

* fix tests
2024-06-30 18:43:22 +00:00
Eric Zhu
28f11c726d Add architecture overview (#164) 2024-06-30 08:38:11 -07:00
Eric Zhu
f42361f57d Update Docs; Update examples to allow Azure OpenAI setup (#154)
* Update Docs; Update examples to allow Azure OpenAI setup

* update
2024-06-28 23:15:46 -07:00
Luis Quintanilla
4093102e51 Add Copilot extension to devcontainer (#150)
Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-06-28 16:15:53 -07:00
gagb
aff179776c Add coder, file surfer, common message types in team-one (#142)
* Update message types

* Add new coder, refactor file surfer

* Run hatch check

* Run hatch check
2024-06-28 15:50:10 -07:00
Eric Zhu
6b2cf8d938 Fix bug in logging for single threaded agent runtime. (#153)
* fix logging

* fix doc
2024-06-28 15:27:00 -07:00
Eric Zhu
4023f13b5f Refactor documentation pages and Add core concept page. (#140) 2024-06-28 14:15:51 -07:00
Reuben Bond
ebed669231 Initial cross-language protocol for agents (#139)
* Initial prototype of .NET gRPC worker client + service

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-06-28 08:03:42 -07:00
Jack Gerrits
13b0d0deb4 Implement closure agent (#143) 2024-06-28 10:22:44 -04:00
Mark Sze
23c1dec206 Groq Client (#3003)
* Groq Client Class - main class and setup, except tests

* Change pricing per K, added tests

* Streaming support, including with tool calling

* Used Groq retries instead of loop, thanks Gal-Gilor!

* Fixed bug when using logging.

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
2024-06-28 05:58:42 +00:00