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
4aec53c36f
Improve agentchat tutorial ( #4233 )
2024-11-16 09:01:38 -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
Jack Gerrits
2b565713d0
Make save/load state for agent async ( #4195 )
2024-11-15 10:38:01 -05: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
Gerardo Moreno
93733dbd65
Run LocalCommandLineCodeExecutor within venv ( #3977 )
...
* Run LocalCommandLineCodeExecutor within venv
* Remove create_virtual_env func and add docstring
* Add explanation for LocalCommandLineExecutor docstring example
* Enhance docstring example explanation
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-10-29 08:17:34 -07:00
Leonardo Pinheiro
38f62e1609
migrate models ( #3848 )
...
* migrate models
* Update python/packages/autogen-agentchat/src/autogen_agentchat/agents/_tool_use_assistant_agent.py
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
* refactor missing imports
* ignore type check errors
* Update python/packages/autogen-ext/src/autogen_ext/models/_openai/_model_info.py
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
* update packages index page
---------
Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-10-22 11:40:41 -04:00
Eric Zhu
43ccc811e0
Make sure exceptions in process publish is logged. ( #3774 )
2024-10-13 12:12:24 -07:00
Leonardo Pinheiro
c765a34cbf
Move docker code exec to autogen-ext ( #3733 )
...
* move docker code exec to autogen-ext
* fix test
* rename docker subpackage
* add missing renamed package
---------
Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
2024-10-11 09:28:15 -07:00
Jack Gerrits
6567d90941
Update references to autogen ( #3708 )
2024-10-09 15:12:36 -04:00
Leonardo Pinheiro
53e5951474
Lspinheiro/chore/migrate azure executor autogen ext ( #3652 )
...
* migrate code executor and tests
* update extras
* update dependencies and examples
* fix imports
* fix uv lock
* add code_executor to toctree
---------
Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-10-08 15:05:44 -07:00
Eric Zhu
ffb16d560a
Set logging of internal messages to debug ( #3694 )
...
* Set logging of internal messages to debug
* Fix worker runtime tests
2024-10-08 15:01:13 -07:00
Mohammad Mazraeh
29c23d53af
add a way to provide extra grpc options ( #3667 )
...
* rebase and address PR comments
* address PR feedback
2024-10-08 14:46:12 -04:00
Mohammad Mazraeh
be5c0b5d3e
fix: remove subscription on client disconnect in worker runtime ( #3653 )
...
* remove subscription on client disconnect in worker runtime
* address PR feedback
* remove outdated comment
* remove public properties
* fix mypy issue
* address PR feedback
---------
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-10-05 08:15:01 -07:00
Jacob Alber
499b3fcbbf
fix: Make cleanup code in docker CodeExecutor asyncio aware ( #669 )
...
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-10-01 15:38:23 -04:00
Eric Zhu
7ba99186fb
Initial implementation of agentchat ( #623 )
...
* WIP implementation for agentchat
* WIP
* WIP
* wip
* WIP
* WIP
* WIP
* WIP
* fix types
* format
* fix build
* Fix build
* use a simpler implementation of thread -- list
* Select speaker to return speaker topic type
* add parent topic type to agent container
* Address comments
* Add check to make sure agent id is constant in a team run.
* Fix build
2024-09-25 23:15:17 +00:00
Jack Gerrits
dc02719f7c
Check for prints ( #616 )
...
* Check for prints
* format
2024-09-23 20:10:57 +00:00
Mohammad Mazraeh
1ac52729f4
add subscription deduplication ( #594 )
...
* add subscription deduplication
* format
---------
Co-authored-by: Mohammad Mazraeh <mmazraeh@microsoft.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-09-23 11:57:48 -04:00
Jack Gerrits
ab6ba80a98
Update pyright extends for core ( #562 )
...
* Update pyright extends for core
* Fixes
2024-09-20 15:51:38 -04:00
Jack Gerrits
9009c2aa96
add test for skip_class_subscriptions ( #604 )
2024-09-20 15:37:38 +00:00
Eric Zhu
46ca778423
format ( #593 )
2024-09-19 20:59:39 +00:00
Eric Zhu
8018677234
Add response for registering agent type and adding subscriptions in distributed runtime, and throws an exception when error ( #582 )
...
* Add response for registering agent type and adding subscriptions in distributed runtime
* Update unit tests
* lint
2024-09-19 10:50:17 -07:00
Eric Zhu
fd021db91c
Fix bug in register_factory for worker runtime ( #563 )
2024-09-19 02:08:35 +00:00
Jack Gerrits
093e261158
Initial impl of new register and subscriptions ( #542 )
...
* Initial impl of new register and subscriptions
* progress
* test fixes, main issue was unbound self in routed agent
2024-09-18 14:41:04 -04:00
Jack Gerrits
68932331fd
fix docker samples, improve error message ( #548 )
...
* fix docker samples, improve error message
* mypy fixes
* format
* mypy ignore
2024-09-18 10:08:09 -04:00
Leonardo Pinheiro
c60a60e3c9
Add OAI image token count logic ( #518 )
2024-09-18 04:21:09 -07:00
Eric Zhu
aecb437d85
Implementation for @rpc
and @event
decorators ( #504 )
...
* Implementation for `@rpc` and `@event` decorators
* update
2024-09-16 17:20:44 +00:00
Jack Gerrits
561897b4ee
Disallow unions in dataclass messages, move check to creation instead of usage ( #499 )
...
* Disallow unions in dataclass messages, move check to creation instead of usage
* make image serializable by pydantic
* fixup team one
* update lockfile
* fix
* fix dataclass checking bug
* fix mypy
2024-09-16 12:37:26 -04:00
Eric Zhu
a6c1b503ad
Distributed agent runtime API for host and worker; unit tests; documentation ( #465 )
...
* host agent runtime API and docs
* graceful shutdown of worker
* HostAgentRuntime --> WorkerAgentRuntimeHost
* Add unit tests for worker runtime
* Fix bug in worker runtime adding sender filed to proto. Documentation.
* wip
* Fix unit tests; refactor API
* fix formatting
* Fix
* Update
* Make source field optional in Event proto
2024-09-13 08:17:53 -07:00
Jack Gerrits
306541e247
Fixup ruff config and inclusions ( #495 )
...
* add tests to ruff for core
* fmt
* lint
* lint fixes
* fixup more dirs
* dont include non python
* lint fixes
* lint fixes
* fix dir name
* dont relative include
2024-09-13 10:41:15 -04:00
Jack Gerrits
3ab51d3006
Port docker code executor, make async, make code executor restart async ( #489 )
...
* Port docker code executor, make async, make code executor restart async
* add export
* fmt
* fix async file
2024-09-12 16:33:30 -04:00
Aamir
461b8a8bbd
Add basic OTEL tracing for SingleThreadedAgentRuntime and WorkerAgentRuntime ( #459 )
...
* Downgrade protobuf from v5 to v4
* Add some telemetry blocks fo single threaded agent runtime
* Rename
* Add comments
* Update uv sync
* Address build complains
* Fix mypy
* Add tracing for worker
* Add tracing to worker
* Fix
* Fix up
* Update
* Simplify
* UpdateUpdate
* Add test dep for otel sdk
* Minor fix
* Add telemetry docs
* Simple
* Fix mypy
* Add testFix
* Fix merge
* Update telemetry.md
---------
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-11 19:47:55 -04:00
Eric Zhu
976a7d4d77
create model context component, remove chat memory component, refactor samples #454 ( #469 )
...
* create model context component, remove chat memory component, refactor samples #454
* Fix bugs in samples.
* Fix
* Update docs
* add unit tests
2024-09-11 14:35:35 -07:00
Eric Zhu
2345557c62
add router to message handler Routing Predicates for message_handler in RoutedAgent #397 ( #446 )
...
* add router to message handler Routing Predicates for message_handler in RoutedAgent #397
* route --> match
* update docs
* type checking message parameter
* update docs
---------
Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
2024-09-11 15:26:09 +08:00
Jack Gerrits
05ff2d33e0
Rename codec to serializer ( #462 )
2024-09-09 18:32:29 -04:00
Jack Gerrits
8504ea0bf2
Support datacontenttype and lay groundwork for unknown payloads ( #444 )
...
* Support datacontenttype and lay groundwork for unknown payloads
* Update dotnet based on proto changes
2024-09-05 16:36:59 -04:00
Aamir
042958e3ab
Allow multiple intervention handlers to be supplied to the runtime ( #435 )
...
* Allow multiple intervention handleres to be supplied
* intervention_handler -> intervention_handlers
* Run format
---------
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-08-30 15:24:25 -04:00
Jack Gerrits
ba64f442de
Remove static subscription restriction ( #439 )
2024-08-30 14:00:11 -04:00
Jack Gerrits
5e8840d13c
Python: organize packages in package directory ( #420 )
...
* Move packages to packages directory
* remove screenshot
* update some paths
2024-08-28 13:35:21 -04:00