3039 Commits

Author SHA1 Message Date
Jack Gerrits
7e75dc8df8 Add core components for topics (#278)
* Add core components for topics

* rename topic to topic id
2024-07-26 14:38:08 -04:00
afourney
61dec0a3ca Added token counting to TeamOne (#264)
* Added token counting to TeamOne
2024-07-26 09:45:41 -07:00
afourney
25b9a91328 Teamone webarena agents fully implemented. (#276)
* Initial onboarding of WebArena
* Migrate to try_get_underlying_agent_instance
* Fixed some race conditions and implemented Deactivate messages.
2024-07-26 09:42:12 -07:00
wenngong
f048776685
avoid scan tool false alarm (#3218)
Co-authored-by: gongwn1 <gongwn1@lenovo.com>
2024-07-26 16:38:09 +00:00
Jack Gerrits
5fca275be1 Fix links in overview.md (#277)
* Update foundation.md

* Update foundation.md

* Update overview.md
2024-07-26 09:51:25 -04:00
afourney
9fd7e301b3 TeamOne agents default to handling one message at a time, exclusively… (#273)
* TeamOne agents default to handling one message at a time, exclusively. The default can be overridden by passing a parameter to the BaseAgent constructor.
2024-07-25 21:13:08 -07:00
Eric Zhu
3bc37619d5 Update overview page with application stack and example (#275) 2024-07-25 18:46:07 -07:00
Fabian Valle
f9295c4c39
+mdb atlas vectordb [clean_final] (#3000)
* +mdb atlas

* Update test/agentchat/contrib/vectordb/test_mongodb.py

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

* update test_mongodb.py; we dont need to do the assert .collection_name vs .name

* Try fix mongodb service

* Try fix mongodb service

* Update username and password

* Update autogen/agentchat/contrib/vectordb/mongodb.py

* closer --- but im not super thrilled about the solution...

* PYTHON-4506 Expanded tests and simplified vector search pipelines

* Update mongodb.py

* Update mongodb.py - Casey

* search_index_magic

index_name change; keeping track of lucene indexes is tricky

* Fix format

* Fix tests

* hacking trying to figure this out

* Streamline checks for indexes in construction and restructure tests

* Add tests for score_threshold, embedding inclusion, and multiple query tests

* refactored create_collection to meet base object requirements

* lint

* change the localhost port to 27017

* add test to check that no embedding is there unless explicitly provided

* Update logger

* Add test get docs with ids=None

* Rename and update notebook

* have index management include waiting behaviors

* Adds further optional waits or users and tests. Cleans up upsert.

* ensure the embedding size for multiple embedding inputs is equal to dimensions

* fix up tests and add configuration to ensure documents and indexes are READY for querying

* fix import failure

* adjust typing for 3.9

* fix up the notebook output

* changed language to communicate time taken on first init_chat call

* replace environment variable usage

---------

Co-authored-by: Fabian Valle <fabian.valle-simmons@mongodb.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Casey Clements <casey.clements@mongodb.com>
Co-authored-by: Jib <jib.adegunloye@mongodb.com>
Co-authored-by: Jib <Jibzade@gmail.com>
Co-authored-by: Cozypet <yanhan860711@gmail.com>
2024-07-25 23:11:19 +00:00
Tristan Jin
1bd2124ba4
Resolve arguments formatting (#3194)
Fixed formatting for "clear_history"

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-07-25 19:16:42 +00:00
Joris van Raaij
2b29274fcb
Fix Anthropic Bedrock support (#3210)
* Added _configure_openai_config_for_bedrock to include aws variables in openai_config, necessary for setting AnthropicBedrock as client.

* Removed aws_session_token from required_keys

* Removed check for aws_session_token

* Removed all checks for aws_session_token

* Ran pre-commit

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-25 19:02:20 +00:00
Eric Zhu
e9c3a384f3 Update ai agent documentation on tool agent (#272)
* Update ai agent documentation on tool agent

* Fix
2024-07-25 11:53:59 -07:00
Adil Khalil
e08fd68cdb
Fix typo in agentchat_society_of_mind.ipynb (#3180)
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-07-25 18:23:41 +00:00
Eric Zhu
84d4e27776 Add tool agent class for convience of creating AI agents (#271)
* Add tool agent class for convience of creating AI agents

* Merge remote-tracking branch 'origin/main' into ekzhu-tool-agent

* feat: Add return type annotation to test_tool_agent function
2024-07-25 11:20:42 -07:00
Xiaoyun Zhang
155da15734
[.Net] fix #3203 (#3204)
* add net6 & net8

* update

* add tools and stop sequence
2024-07-25 16:15:55 +00:00
Reuben Bond
e7ac11b2e9 Initial distributed tracing implementation for .NET (#257) 2024-07-25 07:06:06 +00:00
Rajan
8e5d293f0a
[CAP] Address missed PR comment changes (Minor) (#3201)
* Address PR comments

* Address PR comments
2024-07-25 01:22:50 +00:00
Enhao Zhang
b46625934b Fix pattern examples (#267)
* fix pattern examples

* reformat

---------

Co-authored-by: Enhao Zhang <t-enhaozhang@microsoft.com>
2024-07-24 17:28:00 -07:00
Victor Dibia
782503dff5 Update team one readme with information on how logging works. (#259)
Update team one readme with information on how logging works.

Related to #228
2024-07-24 13:18:28 -07:00
Diego Colombo
04eebf11c8 Add LlamaIndexAgent class for integrating llamaindex agent (#227) 2024-07-24 12:01:01 -07:00
Jack Gerrits
5081d3b747 fix templating (#254) 2024-07-24 14:23:21 +00:00
Eric Zhu
176932ef9c Add gpt-4o-mini, update examples (#253) 2024-07-23 18:05:16 -07:00
Eric Zhu
2288aee72b Adding example for tool intercept and human approval (#252)
* Adding example for tool intercept

* Format
2024-07-23 17:58:15 -07:00
Eric Zhu
d9f371fa3e Add AI Agent documentation section, update examples (#251)
* Add doc for ai agents

* update

* Update

* update

* Move patterns
2024-07-24 00:08:56 +00:00
afourney
b33c9602b2 Migrates GAIA to try_get_underlying_agent_instance (#250) 2024-07-23 17:07:04 -07:00
Jack Gerrits
3ba7a48b13 Implement try_get_underlying_agent_instance (#249) 2024-07-23 19:38:37 -04:00
Jack Gerrits
a52d3bab53 Agent factory can be async (#247) 2024-07-23 14:49:38 -04:00
Rajan
b7bdbe1ecc
[CAP] Convenience methods for protobuf and some minor refactoring (#3022)
* First pass:  message loop in main thread

* pypi version bump

* Fix readme

* Better example

* Fixed docs

* pre-commit fixes

* Convenience methods for protobufs

* support non-color consoles

* Non-color console and allow user input

* Minor update to single_threaded_demo

* new pypi version

* pre-commit fixes

* change pypi name

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
2024-07-23 17:25:36 +00:00
Xiaoyun Zhang
fa88646301
[.Net] Add a constructor which takes ChatCompletionOptions for OpenAIChatAgent (#3170)
* accept ChatCompletionOptions in constrcutor

* fix comment
2024-07-23 16:59:05 +00:00
Zoltan Lux
a5e5be73b5
Enhance vertexai integration (#3086)
* switch to officially supported Vertex AI message sending + safety setting converion for vertexai

* add system instructions

* switch to officially supported Vertex AI message sending + safety setting converion for vertexai

* fix bug in safety settings conversion

* add missing system instructions

* add safety settings to send message

* add support for credentials objects

* add type checkingchange project_id to project arg

* add more tests

* fix mock creation in test

* extend docstring

* fix errors with gemini message format in chats

* add option for vertexai response validation setting & improve docstring

* readding empty message handling

* add more tests

* extend and improve gemini vertexai jupyter notebook

* rename project arg to project_id and GOOGLE_API_KEY env var to GOOGLE_GEMINI_API_KEY

* adjust docstring formatting
2024-07-23 16:37:48 +00:00
Eric Zhu
718fad6e0d Remove orchestrator.py from examples as this is already available in team-one (#246) 2024-07-23 08:23:16 -07:00
Eric Zhu
eab3f9570c Update readme to clarify event-driven and async messaging (#243) 2024-07-22 11:13:34 -07:00
Eric Zhu
09b3a66320 Fix links (#241) 2024-07-22 11:06:30 -07:00
Eric Zhu
c85da398a0 Cancellation for model client #90 (#240)
* Cancellation for model client #90

* format

* Use future
2024-07-22 10:59:16 -07:00
Xiaoyun Zhang
1daf852f86
rename Service -> WebAPI (#3177) 2024-07-22 16:44:12 +00:00
Xiaoyun Zhang
06e6b3ff05
[.Net] Allow passing a kernel to Interactive Service. (#3183)
* accept a running kernel for Interactive Service

* add kernel running check
2024-07-22 16:43:58 +00:00
Yiran Wu
c19f44f626
update (#3175)
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-21 21:07:13 +00:00
Olaoluwa Ademola Salami
adf438abfa
add Use AutoGen.Net agent as model in AG Studio (#3182)
* add Use AutoGen.Net agent as model in AG Studio

* add git lfs

* test

* dotnet/nuget/icon.png,dotnet/resource/images/background.png,dotnet/resource/images/square.png,dotnet/test/AutoGen.Anthropic.Tests/images/square.png,dotnet/test/AutoGen.Ollama.Tests/images/image.png,dotnet/test/AutoGen.Ollama.Tests/images/square.png,dotnet/test/AutoGen.Tests/ApprovalTests/square.png,dotnet/website/images/articles/CreateAgentWithTools/single-turn-tool-call-with-auto-invoke.png,dotnet/website/images/articles/CreateAgentWithTools/single-turn-tool-call-without-auto-invoke.png,dotnet/website/images/articles/CreateUserProxyAgent/image-1.png,dotnet/website/images/articles/PrintMessageMiddleware/printMessage.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/FinalStepsA.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/FinalStepsB.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/FinalStepsC.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/Step5.2OpenAIModel.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/Step5.3ModelNameAndURL.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/Step6.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/Step6b.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/Terminal.png,dotnet/website/images/articles/UseAutoGenAsModelinAGStudio/TheModelTab.png,notebook/friendly_and_suspicous.jpg,notebook/nested-chats-chess.png,notebook/nested_chat_1.png,notebook/nested_chat_2.png,notebook/optiGuide_new_design.png,notebook/viz_gc.png,samples/apps/auto-anny/images/icon.png,samples/apps/autogen-studio/docs/ara_stockprices.png,samples/apps/autogen-studio/frontend/src/images/icon.png,test/test_files/test_image.png,website/blog/2023-04-21-LLM-tuning-math/img/level2algebra.png,website/blog/2023-04-21-LLM-tuning-math/img/level3algebra.png,website/blog/2023-04-21-LLM-tuning-math/img/level4algebra.png,website/blog/2023-04-21-LLM-tuning-math/img/level5algebra.png,website/blog/2023-05-18-GPT-adaptive-humaneval/img/design.png,website/blog/2023-05-18-GPT-adaptive-humaneval/img/humaneval.png,website/blog/2023-06-28-MathChat/img/mathchatflow.png,website/blog/2023-06-28-MathChat/img/result.png,website/blog/2023-10-18-RetrieveChat/img/retrievechat-arch.png,website/blog/2023-10-26-TeachableAgent/img/teachable-arch.png,website/blog/2023-11-06-LMM-Agent/img/teaser.png,website/blog/2023-11-09-EcoAssistant/img/chat.png,website/blog/2023-11-09-EcoAssistant/img/results.png,website/blog/2023-11-09-EcoAssistant/img/system.png,website/blog/2023-11-09-EcoAssistant/img/template-demo.png,website/blog/2023-11-09-EcoAssistant/img/template.png,website/blog/2023-11-13-OAI-assistants/img/teaser.jpg,website/blog/2023-11-20-AgentEval/img/agenteval-CQ.png,website/blog/2023-11-20-AgentEval/img/math-problems-plot.png,website/blog/2023-11-20-AgentEval/img/tasks-taxonomy.png,website/blog/2023-11-26-Agent-AutoBuild/img/agent_autobuild.png,website/blog/2023-12-01-AutoGenStudio/img/autogenstudio_config.png,website/blog/2023-12-01-AutoGenStudio/img/autogenstudio_home.png,website/blog/2023-12-01-AutoGenStudio/img/autogenstudio_skills.png,website/blog/2023-12-23-AgentOptimizer/img/agentoptimizer.png,website/blog/2024-01-25-AutoGenBench/img/teaser.jpg,website/blog/2024-02-02-AutoAnny/img/AutoAnnyLogo.jpg,website/blog/2024-02-11-FSM-GroupChat/img/FSM_logic.png,website/blog/2024-02-11-FSM-GroupChat/img/FSM_of_multi-agents.png,website/blog/2024-02-11-FSM-GroupChat/img/teaser.jpg,website/blog/2024-02-29-StateFlow/img/alfworld.png,website/blog/2024-02-29-StateFlow/img/bash_result.png,website/blog/2024-02-29-StateFlow/img/intercode.png,website/blog/2024-02-29-StateFlow/img/sf_example_1.png,website/blog/2024-03-03-AutoGen-Update/img/contributors.png,website/blog/2024-03-03-AutoGen-Update/img/dalle_gpt4v.png,website/blog/2024-03-03-AutoGen-Update/img/gaia.png,website/blog/2024-03-03-AutoGen-Update/img/love.png,website/blog/2024-03-03-AutoGen-Update/img/teach.png,website/blog/2024-03-11-AutoDefense/imgs/architecture.png,website/blog/2024-03-11-AutoDefense/imgs/defense-agency-design.png,website/blog/2024-03-11-AutoDefense/imgs/table-4agents.png,website/blog/2024-03-11-AutoDefense/imgs/table-agents.png,website/blog/2024-03-11-AutoDefense/imgs/table-compared-methods.png,website/blog/2024-05-24-Agent/img/agents.png,website/blog/2024-05-24-Agent/img/leadership.png,website/blog/2024-06-21-AgentEval/img/agenteval_ov_v3.png,website/blog/2024-06-24-AltModels-Classes/img/agentstogether.jpeg,website/docs/Use-Cases/images/agent_example.png,website/docs/Use-Cases/images/app.png,website/docs/Use-Cases/images/autogen_agents.png,website/docs/autogen-studio/img/agent_assistant.png,website/docs/autogen-studio/img/agent_groupchat.png,website/docs/autogen-studio/img/agent_new.png,website/docs/autogen-studio/img/agent_skillsmodel.png,website/docs/autogen-studio/img/ara_stockprices.png,website/docs/autogen-studio/img/model_new.png,website/docs/autogen-studio/img/model_openai.png,website/docs/autogen-studio/img/skill.png,website/docs/autogen-studio/img/workflow_chat.png,website/docs/autogen-studio/img/workflow_export.png,website/docs/autogen-studio/img/workflow_new.png,website/docs/autogen-studio/img/workflow_profile.png,website/docs/autogen-studio/img/workflow_sequential.png,website/docs/autogen-studio/img/workflow_test.png,website/docs/ecosystem/img/ecosystem-composio.png,website/docs/ecosystem/img/ecosystem-databricks.png,website/docs/ecosystem/img/ecosystem-fabric.png,website/docs/ecosystem/img/ecosystem-llamaindex.png,website/docs/ecosystem/img/ecosystem-memgpt.png,website/docs/ecosystem/img/ecosystem-ollama.png,website/docs/ecosystem/img/ecosystem-promptflow.png,website/docs/topics/non-openai-models/images/cloudlocalproxy.png,website/docs/tutorial/assets/code-execution-in-conversation.png,website/docs/tutorial/assets/code-executor-docker.png,website/docs/tutorial/assets/code-executor-no-docker.png,website/docs/tutorial/assets/conversable-agent.jpg,website/docs/tutorial/assets/group-chat.png,website/docs/tutorial/assets/human-in-the-loop.png,website/docs/tutorial/assets/nested-chats.png,website/docs/tutorial/assets/sequential-two-agent-chat.png,website/docs/tutorial/assets/two-agent-chat.png,website/static/img/autogen_agentchat.png,website/static/img/autogen_app.png,website/static/img/chat_example.png,website/static/img/create_gcp_svc.png,website/static/img/gallery/TensionCode.png,website/static/img/gallery/autotx.png,website/static/img/gallery/composio-autogen.png,website/static/img/gallery/default.png,website/static/img/gallery/robot.jpg,website/static/img/gallery/webagent.jpg,website/static/img/gallery/x-force-ide-ui.png: convert to Git LFS
2024-07-21 18:42:26 +00:00
Sugato Ray
2887e0757e
fix: update method name in GeminiClient (#3007)
- change from `_initialize_vartexai` to `_initialize_vertexai`

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-21 05:12:15 +00:00
Eric Zhu
2041905acb Add token counting to chat completion client #220 (#239)
* Add token counting to chat completion client

* fix mypy

* ignore pyright for object type

* format
2024-07-19 18:44:22 -07:00
Kosta Petan
c425a447a7 Marketing sample migration to AGNext (#234) 2024-07-19 20:57:13 +00:00
Umer Mansoor
d1d4b10479
Update token_count_utils.py - Replace print with logger.warning for consistency (#3168)
The code was using both `logger.warning` and `print` for showing warning. This commit fixes this inconsistency which can be an issue on production environments / logging systems
2024-07-19 20:17:18 +00:00
Manojkumar Kotakonda
1fdeca4205
Added anthropic bedrock (#3103)
* Added anthropic bedrock

* Code format and fixed import

* Added tests for anthropic bedrock

* tests update

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-19 19:43:09 +00:00
Xiaoyun Zhang
d073678154
add streaming tool call example (#3167) 2024-07-19 16:36:04 +00:00
Li Jiang
bd735d0f82
Fix docstring (#3172) 2024-07-19 11:50:34 +00:00
gagb
e67ab18344 Improve team-one doc based on behavior (#237)
* Clarify generalist behav; add fig

* Add instructions for setting bing api key

* Add orchestration txt

* Add img for orch

* fix txt

* Add example for GAIA

* Add example for webarena

* answer q1

* answer q3

* Add what it cannot do

* add section on safety and risk
2024-07-19 01:25:52 +00:00
Kosta Petan
7a183e2e07 Initial dotnet CI (#203)
* basic CI WIP

* change authors to Microsoft

* add Aspire workload

* artificial commit to trigger workflow

* only publish packages if on main branch

* comment out the publishing jobs

* Remove publish from main dotnet CI workflow
2024-07-18 11:00:09 -07:00
Umer Mansoor
0cdbc345c5
Update JSON_mode_example.ipynb (#3130)
Improve minor mistakes in documentation
2024-07-18 02:07:40 +00:00
Nikita Fedyashev
0beb0a7f61
Fix typo in agentchat_nestedchat.ipynb (#3139) 2024-07-18 01:27:01 +00:00
Hugh Lyu
85b83e7af6
Add Agentok into gallery (#3148)
* docs: Added Agentok into gallery.

* Fixed the format issue

* Track agentok.png with Git LFS

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
2024-07-18 01:25:29 +00:00
Kosta Petan
a46d82996b remove typo from .net samples url (#223) 2024-07-18 00:48:06 +00:00