Eric Zhu
5ee2190e00
Replace Tuple[type[ChatMessage], ...] with Sequence[type[ChatMessage]] ( #4857 )
2024-12-30 11:30:31 -08:00
Eric Zhu
a20ec102d3
AgentChat tutorial update to include model context usage and langchain tool ( #4843 )
...
* Doc update to include model context usage
* add langchain tools
* update langchain tool wrapper api doc
* updat
* update
* format
* add langchain experimental dev dep
* type
* Fix type
* Fix some types in langchain adapter
* type ignores
2024-12-30 09:09:33 -08:00
Eric Zhu
d933b9ab5f
dev12 ( #4839 )
...
* dev12
2024-12-27 11:49:12 -08:00
Jack Gerrits
ad7433e817
Remove pydantic v1 compat ( #4838 )
...
Remove pydantic compat
2024-12-27 11:38:42 -08:00
Jack Gerrits
a5681d73c6
Allow closure agent to ignore unknown messages, add docs ( #4836 )
...
Allow closure agent to ignore unknown messages
2024-12-27 13:37:55 -05:00
Eric Zhu
2819515220
Improve agentchat tutorial Teams section ( #4834 )
...
* update teams doc
* Update
* fmt
2024-12-27 10:25:36 -08:00
Eric Zhu
b9bd8b0c64
human-in-the-loop section for agentchat tutorial ( #4832 )
...
* human-in-the-loop section for agentchat tutorial
2024-12-27 10:20:52 -08:00
Jack Gerrits
fadff4aece
Fix definition of workspace package, remove uv pin ( #4830 )
...
* Fix definition of workspace package, remove uv pin
* add --all-packages
* pin docs uv versions for older project structure
* try old version to verify CI
* Use workflow target
* change syntax
* change check
* try with var in matrix
* add all packages to workspace
* remove project table
2024-12-27 13:11:42 -05:00
Jack Gerrits
461605869c
Update links in extension page to fix 404 ( #4827 )
...
Update links in extension page
2024-12-27 12:52:36 -05:00
Jack Gerrits
5bd91fb15e
Accept agent type in more places ( #4829 )
...
* Accept agenttype in more places
* remove type hint
2024-12-27 12:21:39 -05:00
Richárd Gyikó
e710f9d04f
Update discover.md with autogen-ext-mcp community package ( #4826 )
...
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-27 09:58:28 -05:00
Leonardo Pinheiro
c078b252fb
refactor!: Migrate python code executor tool to autogen-ext ( #4824 )
...
migrate python code exec to autogen-ext
Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-27 08:57:55 -05:00
Sachin Joglekar
d1dff316bc
Update pydantic version & fix mypy errors ( #4811 )
...
* Update pydantic version & fix mypy errors
* uv lock changes
* Update lock
* update lockfile
---------
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-27 08:53:52 -05:00
Leonardo Pinheiro
9a2dbb4fba
Add * before keyword args for ChatCompletionClient ( #4822 )
...
add * before keyword args
Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-27 08:41:16 -05:00
Eric Zhu
edad1b6065
Emphasis on_messages is for new messages only; remove unused file. ( #4819 )
...
* Emphasis on_messages is for new messages only
* update
* update uv
* update uv action
* try pin uv version
* pin all uv versions to 0.5.11
* revert uv lock file and remove unwanted file.
2024-12-27 08:34:21 -05:00
Jack Gerrits
0040016bec
Remove usage of internal pydantic functionality for forward ref eval ( #4816 )
...
* Remove usage of internal pydantic func
* Update python/packages/autogen-core/tests/test_tools.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update python/packages/autogen-core/tests/test_tools.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Remove unused import NoneType from test_tools.py
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2024-12-26 12:15:54 -08:00
Eric Zhu
f774eaa105
Add minimum dep versions ( #4803 )
2024-12-26 12:40:32 -05:00
Eric Zhu
4f673192cb
"model" to "chat completion" ( #4804 )
...
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-26 12:12:02 -05:00
gagb
d2537abbab
Add MagenticOne API and CLI ( #4782 )
...
* Add MagenticOne API
* Add CodeExecutorAgent to MagenticOne for enhanced task execution
* Refactor MagenticOne class to inherit from MagenticOneGroupChat and streamline initialization
* Enhance MagenticOne class documentation with detailed usage examples and initialization instructions
* Refactor MagenticOne module structure and update import paths
* Remove unused imports
* Add documentation for MagenticOne module and remove redundant initialization comments
* Enhance MagenticOne class with human-in-the-loop mode and update examples
* Update MagenticOne class documentation with safety precautions and architecture details
* Run poe format
* Add blog post reference to MagenticOne class documentation
* change default of websurfer use_ocr to false because of refusals
* Refactor MagenticOne class to use ChatCompletionClient instead of OpenAIChatCompletionClient
* Add client capability validation to MagenticOne initialization
* Poe format
* Refactor imports in MagenticOne class for clarity and organization
* Add stacklevel parameter to warning in client capability validation
* Update README to recommend using Magentic-One API for improved integration
* Add create_args property to OpenAIChatCompletionClient for better access to initialization arguments
* Enhance client capability validation in MagenticOne to ensure compatibility with OpenAI GPT-4o model
* Refactor client capability validation in MagenticOne for improved clarity
* Update magentic_one.py
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
* Remove create_args property from OpenAIChatCompletionClient and update validation logic in MagenticOne to directly access _create_args
* Refactor documentation in MagenticOne for improved readability and consistency
* Refactor client capability validation in MagenticOne to remove unnecessary model check for GPT-4o
* Add MagenticOne CLI (#4788 )
* Add MagenticOne CLI script for task execution with OpenAI GPT-4o integration
* Fix argument parsing in MagenticOne CLI to require a single task input
* Add docstring to main function in MagenticOne CLI for improved usage clarity
* Fix example usage in docstring of MagenticOne CLI for correct argument order
* Refactor argument parsing in MagenticOne CLI for improved clarity and consistency
* Add type hints to run_task function in MagenticOne CLI
* Add type hint for main function in MagenticOne CLI
* Remove type ignore from main function call in MagenticOne CLI
---------
Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-23 16:45:21 -08:00
Eric Zhu
150a54c4f5
Refine types in agentchat ( #4802 )
...
* Refine types in agentchat
* importg
* fix mypy
2024-12-23 16:10:46 -08:00
Jack Gerrits
2c76ff9fcc
More improvements for component config ( #4799 )
...
* More improvements for component config
* clean output
* working dir
* fix fstring
* key error
* remove mv
2024-12-23 18:29:23 -05:00
peterychang
9c8877ed66
Add API documentation ( #4798 )
...
* Add API documentation
* Update python/packages/autogen-core/src/autogen_core/_cancellation_token.py
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-23 17:06:56 -05:00
Jack Gerrits
90d6723685
Usability improvements to component config ( #4794 )
...
* Usability improvements to component config
* Implement model upgrade
2024-12-23 14:03:58 -05:00
Eric Zhu
4bce1e914a
Update agentchat quickstart to show how to handle multi-round user inputs ( #4735 )
...
Update agentchat quickstart to show how to handle multi-round user inputs.
2024-12-20 10:34:53 -08:00
Jack Gerrits
dda208f9b4
Add component config support ( #4757 )
...
* Add wip component impl
* finishing touches
* remove test file
* fix json usage
* Format
---------
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-12-20 13:14:24 -05:00
Lanbao
a4c1314432
Correct the spelling errors in models.ipynb ( #4767 )
...
Update models.ipynb
Correct the spelling error: opne -> open
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-20 01:52:29 -08:00
Aditya Kurniawan
c989181da2
use model context for assistant agent, refactor model context ( #4681 )
...
* Decouple model_context from AssistantAgent
* add UnboundedBufferedChatCompletionContext to mimic pervious model_context behaviour on AssistantAgent
* moving unbounded buffered chat to a different file
* fix model_context assertions in test_group_chat
* Refactor model context, introduce states
* fixes
* update
---------
Co-authored-by: aditya.kurniawan <aditya.kurniawan@core42.ai>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-12-19 22:27:41 -08:00
Jack Gerrits
453fe0cafd
Replace single quotes with double quotes ( #4760 )
...
* Replace single quotes with double quotes
* Fix version
* formatting
2024-12-19 14:21:51 -05:00
Jack Gerrits
c74c2d6767
Follow up changes from top bar change ( #4758 )
2024-12-19 12:01:03 -05:00
Jack Gerrits
97e5cab523
Restructure docs, move packages to top level header ( #4722 )
...
* Restructure top level pages
* move studio
2024-12-19 10:07:07 -05:00
Victor Dibia
4e3a70303d
Add Deploy view in AGS ( #4756 )
...
* update version, fix component factory bug
* add basic structure for deploy
* minor fixes, deploy v1
* minor text updated
* format fixes
* formatting fixes .. webby test samples
* update cli command, update views,
* packakge.json and other fixes
* format fixes
2024-12-18 18:57:11 -08:00
Eric Zhu
e902e94b14
Define AgentEvent, rename tool call messages to events. ( #4750 )
...
* Define AgentEvent, rename tool call messages to events.
* update doc
* Use AgentEvent | ChatMessage to replace AgentMessage
* Update docs
* update deprecation notice
* remove unused
* fix doc
* format
2024-12-18 14:09:19 -08:00
hsm207
7a7eb7449a
typo: travel planning ( #4753 )
2024-12-18 09:44:55 -08:00
Eric Zhu
44b27ad81a
Make it clear the on_messages method is stateful. ( #4751 )
2024-12-17 23:50:25 -08:00
Ryan Sweet
c1646f21c0
Rysweet 4676 remove iagentruntime - collapse into iagentworker ( #4740 )
...
* moves AgentId into Agent
* Renames AgentRuntime to AgentMessenger (more accurate name)
* Remove IAgentRuntime Interface
* changes constructor of Agent to take IAgentWorker instead of IAgentRuntime
2024-12-17 13:04:37 -08:00
kiyoung
2cd91f66d8
make "Alias", "ImportFromModule" classes hashable ( #4734 )
...
make hashable to Alias, ImportFromModule
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-17 11:11:36 -08:00
Victor Dibia
03f57e9357
Update AgentChat State Docs (Saving to Disc) ( #4730 )
...
* add section on persisting state to a file on disc.
* formating fixes
* update notebook
2024-12-16 21:55:47 -08:00
Victor Dibia
6a4a11042c
Add AOAI Support in AGS ( #4718 )
...
* add oai support, improve component config typing, minor updates to docs, update ags tests
* faq updates
* update faq, add model_capabilities
* update faq
2024-12-16 13:17:42 -08:00
peterychang
e2df4e24db
Move existing quickstart guide to design patterns. Simplify quickstart ( #4724 )
...
* Move existing quickstart guide to design patterns. Simplify quickstart guide.
* minor fixes
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-16 12:42:52 -08:00
Eric Zhu
43eed01bbc
Update custom agent doc with arithmetic agent example ( #4720 )
...
* Update custom agent doc with arithmetic agent example
* fix mypy
* fix model capabilities usage
2024-12-16 09:12:26 -08:00
Victor Dibia
e673c437e5
Add Documentation for AGS ( #4711 )
...
* enable download of team specs
* add docs v1 for ags to documentation website
* update docs readme/image
* Update python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/usage.md
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
* Update python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/index.md
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-14 22:59:26 -08:00
Ryan Sweet
55e157cb99
Rysweet refactor 4670 rename abstractions to contracts ( #4674 )
...
* refactor renaming agent base
* 1st draft
* 1st draft
* format
* rename the tsts
* move IagentWorker
* 1st draft
* format
* gen-proto
* run gen-proto-samples
* format
* merge problem format
2024-12-12 19:43:26 -08:00
gagb
fa563cb434
controlling => resetting ( #4691 )
2024-12-12 15:55:57 -08:00
gagb
feb0da39e1
Fix lang ( #4690 )
2024-12-12 15:45:44 -08:00
Kapil Sachdeva
dec4c45cec
fix - correct the deprecation messages from autogen_core.components.models module ( #4647 )
...
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-11 17:21:59 -08:00
peterychang
a65855d00d
Fix one failure mode in the user guide ( #4658 )
...
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-11 16:56:33 -08:00
gagb
69526038a9
Add discord links ( #4661 )
...
* Add discord links
* Update
* Update
---------
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-12-11 16:32:30 -08:00
gagb
b776c53e6f
Improve language ( #4650 )
...
* Improve language
* Update images for examples
* reduce size
---------
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-12-11 14:04:14 -08:00
hsm207
afd6257ac9
typo: messages docs ( #4655 )
2024-12-11 07:29:34 -08:00
Eric Zhu
6c1f638960
dev11 release ( #4642 )
...
* dev11 release
2024-12-10 08:28:48 -08:00
Eric Zhu
48778e5ffd
Minor doc fixes please merge ( #4633 )
...
Minor doc fixes
2024-12-09 22:11:57 -08:00
Jack Gerrits
7e7265ddd0
Update version for dev10 ( #4630 )
...
* Update version for dev10
* fix notebook
2024-12-09 19:33:21 -08:00
Leonardo Pinheiro
253fe216fd
Add models.openai and tools.langchain namespaces ( #4601 )
...
* add models.openai namespace
* refactor tools namespace
* update lock file
* revert pyproject changes
* update docs and add cast
* update ext models doc ref
* increase underline
* add reply models namespace
* update imports
* fix test
* linting
* fix missing conflicts
* revert pydantic changes
* rename to replay
* replay
* fix reply
* Fix test
* formatting
* example
---------
Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-12-09 19:18:09 -08:00
Hussein Mozannar
871a83fcc5
Fix AssistantAgent Tool Call Behavior ( #4602 )
...
* 1 tool call iteration default
* handoff first
* return_only_response
* add and remove tools
* print out tool calls
* pass checks
* fix issues
* add test
* add unit tests
* remove extra print
* Update python/packages/autogen-agentchat/src/autogen_agentchat/agents/_assistant_agent.py
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
* documentation and none max_tools_calls
* Always limit # tool call to 1
* Update notebooks for the changing behavior of assistant agent.
* Merge branch 'main' into assistant_Agent_tools
* add reflect_on_tool_use parameter to format the tool call result
* wip
* wip
* fix pyright
* Add unit tests
* Merge remote-tracking branch 'origin/main' into assistant_Agent_tools
* Update with custom formatting of tool call summary
* format
* Merge branch 'main' into assistant_Agent_tools
2024-12-09 19:03:31 -08:00
gagb
f5140badbd
Improve language of user guide ( #4577 )
...
* Improve language of agents section
* Accomodate victor's feedback
* Templ changes
* Change outline
* Fix outline further
* Flatten the outline
* remove
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-09 18:56:22 -08:00
Jack Gerrits
218e84fd8e
Migrate remaining components ( #4626 )
2024-12-09 18:39:07 -08:00
Jack Gerrits
87011ae01b
Migrate model context and models modules out of components ( #4613 )
...
* Move model context out of components
* move models out of components
* rename docs file
2024-12-09 10:00:08 -08:00
peterychang
c5c3444bce
Add user proxy docs. Make user proxy's default impl cancellable ( #4459 )
...
* Add user proxy docs. Make user proxy's default impl cancellable
* remove unnecessary import
* revert accidental change
* address PR comments
* uv sync
* Fix bugs
* poe format
* fixing mypy issues
* poe format
* ignore pyright errors for ainput
* fix example code
* remove unused import
* fix accidental reversion, example code
* formatting
* fix typing
* Update python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/agents.ipynb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/agents.ipynb
---------
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-06 14:53:59 -08:00
Eric Zhu
8dac072658
Update references in docs ( #4590 )
...
* Update agent doc
* Remove outdated doc
* Update references
* Update readme
* Update readme
2024-12-06 01:59:28 -08:00
Eric Zhu
fa550c2c36
fix docs ( #4589 )
...
* fix doc on distributed runtime
* Fix references
* Update references
* Fix import paths in user guide notebooks for code executor components
2024-12-06 01:23:05 -08:00
Eric Zhu
8707729da9
dev9 ( #4585 )
...
* dev9
2024-12-06 00:43:56 -08:00
Gerardo Moreno
afaf2c1288
Sequential Chat Tutorial ( #3861 ) ( #4584 )
...
* Sequential Chat Tutorial (#3861 )
* Include doc in toctree
* Rename title; doc improv
* reorder
* grammar
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-06 00:36:21 -08:00
peterychang
b286c99c1f
model capabilities FAQ ( #4471 )
...
* model capabilities faq
* Add links to FAQ in more places
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-05 23:53:22 -08:00
Leonardo Pinheiro
5f61ba0c2f
Refactor autogen ext agents namespace ( #4582 )
...
* move magentic and openai assistant agents
* add import error messages
* add api docs ref files
* fix magentic rst path
* fix openai rst fname
* fix magentic rst title
* Add module
* rm
* fix some minor issues
---------
Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-05 23:41:13 -08:00
Eric Zhu
f5f364ccea
Add code executor modules in API doc and minor doc fixes ( #4579 )
...
* Add code executor modules
* minor fixes
* minor fixes
* minor
* minor grammar
* underlines
* code check
2024-12-05 15:57:02 -08:00
gagb
ac363344da
Update user guide ( #4560 )
...
* Update user guide
* Fix typos
* Move the file to correct dir
* update notebook, add runnable code to catch bugs, improve text on inner messages
* update icons in tutorial
* Reduce references to future concepts
---------
Co-authored-by: Victor Dibia <victor.dibia@gmail.com>
2024-12-05 14:37:33 -08:00
gagb
0fd47b95d8
Remove WIP banner from landing ( #4575 )
2024-12-05 13:47:57 -08:00
Leonardo Pinheiro
4018a129f8
Refactor code executor namespace ( #4538 )
...
* refactor code exec namespaces
* delete code exec init
* update conflicts
---------
Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
2024-12-05 07:01:59 -08:00
Jack Gerrits
9af450a59f
Move local code exec to ext, uplevel components ( #4557 )
2024-12-04 20:21:46 -08:00
Eric Zhu
cc6765b189
API documentation page flattening ( #4556 )
...
* API documentation page refactor
* Fix links and unused pages
---------
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-12-04 18:24:07 -08:00
Jack Gerrits
e615059345
Remove extract_markdown_code_blocks from core API ( #4554 )
2024-12-04 17:13:43 -08:00
Jack Gerrits
2b878763f8
Move grpc runtimes to ext, flatten application ( #4553 )
...
* Move grpc runtimes to ext, flatten application
* rename to grpc
* fmt
2024-12-04 16:23:20 -08:00
Victor Dibia
777f2abbd7
Load and Save state in AgentChat ( #4436 )
...
1. convert dataclass types to pydantic basemodel
2. add save_state and load_state for ChatAgent
3. state types for AgentChat
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-04 16:14:41 -08:00
Jack Gerrits
d85a607da9
Move LLMUsageTracker to a cookbook ( #4549 )
...
* Move LLMUsageTracker to a cookbook
* rename, add to index
* fmt and remove test
* Update python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/llm-usage-logger.ipynb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix missing quotation marks in notebook
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2024-12-04 14:49:39 -08:00
Vaibhav Balloli
1a448c10b9
Update index.md ( #4548 )
2024-12-04 14:24:32 -08:00
Gerardo Moreno
39ff183fad
Core API example showing multiple agents concurrently ( #4461 )
...
* Core API example showing multiple agents concurrently (#4427 )
* Apply feedback
* Add different topics for closure agent example
* Address feedback
* Mypy fix
* Modify import path based on refactoring
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-12-04 10:39:26 -08:00
Jack Gerrits
3022369eeb
Flatten core base and components ( #4513 )
...
* Flatten core base and components
* remove extra files
* dont export from deprecated locations
* format
* fmt
2024-12-03 17:00:44 -08:00
gagb
6706dce577
Improves tutorial ( #4507 )
...
* Change nav depth
* Remove repetitive module names
* Increase nav depth
* Decrease base font size of docs
* Improve docs
* Undo css change
2024-12-03 16:54:53 -08:00
Eric Zhu
32aa452af8
Remove autogen_agentchat.tasks, create autogen_agentchat.ui and autogen_agentchat.conditions ( #4512 )
2024-12-03 15:24:25 -08:00
Eric Zhu
50e84b945e
Move handoff to base in agentchat ( #4509 )
2024-12-03 14:34:55 -08:00
Jack Gerrits
50fea44539
Update allowed values for agent and topic type ( #4484 )
...
* allowed_type_values
* add return for post init
* Update python/packages/autogen-core/src/autogen_core/base/_agent_id.py
* Update python/packages/autogen-core/src/autogen_core/base/_topic.py
* Merge branch 'main' into allowed_type_values
* lint
2024-12-03 10:12:42 -08:00
Jack Gerrits
954ba84fe7
Change base agent to use on message impl ( #4485 )
...
* Change base agent to use on message impl
* update doc
* Update
* Merge branch 'main' into on_msg_impl
2024-12-03 10:04:12 -08:00
Ryan Sweet
1c09de8d47
HelloAgents App Host with xlang sample ( #4395 )
...
* adds a python xlang sample and aspire code to host it
* fixes message delivery on dotnet runtime
2024-12-03 08:09:02 -08:00
Jack Gerrits
95dfe7bf22
Core doc edits, mostly visibility of private methods ( #4457 )
2024-12-02 14:36:00 -08:00
Jack Gerrits
732391859d
Update code_lint.py ( #4470 )
2024-12-02 16:42:28 -05:00
Jack Gerrits
1b58f6e7d5
Remove unused agent props ( #4453 )
2024-12-02 13:15:23 -08:00
gagb
f02aac78fb
Improve docs ( #4428 )
...
* Change nav depth
* Remove repetitive module names
* Increase nav depth
2024-11-29 16:50:40 -08:00
Eric Zhu
f70869f236
update dev8 ( #4417 )
2024-11-27 14:39:31 -08:00
Jack Gerrits
a4067f6c0a
Migrate Python distributed runtime to use cloud events for event ( #4407 )
...
* Cloud event publishing
* Implement cloud event receiving
* impl host servicer and
2024-11-27 08:32:03 -08:00
Jack Gerrits
bd77ccbd7b
Serialize to Proto.Any for python serializer ( #4404 )
2024-11-27 07:32:01 -08:00
Eric Zhu
a4e6d0d977
Add grpcio back to deps ( #4402 )
...
* Add grpcio back to deps
* Update uv lock
2024-11-27 09:08:14 -05:00
Jack Gerrits
0d3bc948a1
Replatform closure agent on base agent ( #4389 )
...
* Replatform closure agent on base agent
* Fix mypy
* update agentcaht
---------
2024-11-26 16:33:37 -08:00
Jack Gerrits
45f16f534b
Fix deprecated usages ( #4374 )
2024-11-26 16:31:23 -08:00
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
Eric Zhu
2e3155be2a
AgentChat pause, resume, and reset ( #4088 )
...
* 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
2024-11-07 16:00:35 -08:00
Mahesh Subramanian
2382ff9248
chore(typo): Fixing a typo in the agent identity document ( #4070 )
2024-11-06 10:07:13 -08:00
Eric Zhu
4be1c9cf76
Update Python version to 0.4.0.dev4 ( #4068 )
...
* Update version to dev4
2024-11-05 22:04:37 -08:00
Eric Zhu
5be7ac7b12
Move reset from a message to a command ( #4073 )
2024-11-05 21:40:46 -08:00
Eric Zhu
c3283c64a3
Agentchat refactor ( #4062 )
...
* 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
2024-11-05 08:07:49 -08:00
Gerardo Moreno
eca8a95c61
Remove isinstance check from FunctionTool ( #3987 ) ( #4056 )
...
* Remove isinstance check from FunctionTool (#3987 )
* Move __init__ Args to class docstring
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-11-04 16:48:57 -08:00
Eric Zhu
4e5f3ababe
Update version to 0.4.0.dev3 ( #4043 )
2024-11-01 16:08:09 -07:00