Commit Graph

66 Commits

Author SHA1 Message Date
Eric Zhu
7ef502a33e Refactor chat (#60) 2024-06-09 12:11:36 -07:00
Eric Zhu
e99ad511fa Initial chat memory implementation (#59) 2024-06-08 16:29:27 -07:00
Eric Zhu
37cc6bc12a Improve assistant and chess examples to make them more robust and better presentation. (#58)
* Improve assistant and chess examples to make them more robust and better presentation.

* type dep

* format
2024-06-08 01:27:27 -07:00
Eric Zhu
21b730e7c6 oai assistant agent example and custom event handler for streaming mode (#56)
* oai assistant agent example

* wip

* open ai assistant with custom event handler

* doc
2024-06-07 14:46:13 -07:00
Eric Zhu
b4ade8b735 Add examples to showcase patterns (#55)
* add chess example

* wip

* wip

* fix tool schema generation

* fixes

* Agent handle exception

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

* format

* mypy

* fix test for annotated

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-06-07 13:33:51 -07:00
Jack Gerrits
c6360feeb6 Fix function tools (#57)
* Fix function tools

* lint
2024-06-06 21:58:11 -04:00
Jack Gerrits
06ba5d3ca8 Rename ModelClient to ChatCompletionClient (#54) 2024-06-05 19:51:40 +00:00
Jack Gerrits
ab420cc9ee Overhaul tools (#53)
* Overhaul tools

* add a simple test

* mypy fixes

* format
2024-06-05 19:48:14 +00:00
Jack Gerrits
837c388d38 Update readme (#52)
* Update README.md

* Update README.md
2024-06-05 18:44:23 +00:00
Jack Gerrits
8cb530f65e Simplify handler decorator (#50)
* Simplify handler decorator

* add more tests

* mypy

* formatting

* fix 3.10 and improve type handling of decorator

* test fix

* format
2024-06-05 08:51:49 -04:00
Jack Gerrits
ad513d5017 rename llm to models (#49) 2024-06-04 12:09:34 -04:00
Jack Gerrits
ed0229734d Organize some more modules (#48)
* Organize some more modules

* cleanup model_client
2024-06-04 11:13:13 -04:00
Jack Gerrits
19570fdd98 Port changes from agexplore (#47) 2024-06-04 14:17:04 +00:00
Jack Gerrits
69627aeee6 Remove accidentall added test file (#46) 2024-06-04 14:02:51 +00:00
Jack Gerrits
c0143069f4 Rename modules (#45) 2024-06-04 14:00:05 +00:00
Jack Gerrits
805707c89a Format docstrings with ruff (#43) 2024-06-04 13:36:12 +00:00
Jack Gerrits
492f8ecae0 Add detailed instructions for installation (#44) 2024-06-04 13:34:56 +00:00
Jack Gerrits
7bfd182a0f Add doc about how to use aad for model client (#38)
* Add doc about how to use aad for model client

* update after testing
2024-06-03 16:06:04 -04:00
Eric Zhu
a97703e441 Code executor cleanup (#37)
* Remove code extractor; remove sanitization; clean up oai assistant; remove random agent. #36

* format
2024-06-02 20:49:46 -07:00
Eric Zhu
04c30596ed add tool call to chat completion agent (#35)
* add tool call to chat completion agent

* refactor function executor; tool executor in chat completion agent

* update example

* update orchestrator chat demo

* handle function execution result message type

* format

* temp fix for examples.

* fix

* update chat completion agent
2024-05-30 09:01:35 -07:00
Jack Gerrits
2dc7af87ef Add function and code execution (#34)
* WIP code execution

* add tests, reorganize

* fix polars test

* credit statements

* attributions
2024-05-29 17:12:02 -04:00
Jack Gerrits
15268a86dd add structured logging for llm calls (#33)
* add structured logging for llm calls

* fix dep version
2024-05-29 10:38:11 -04:00
Eric Zhu
cd147b6eed chat completion agent and state (#32)
* chat completion agent

* use response format enum; use Message type for chat history; remove name from state
2024-05-28 23:18:28 -07:00
Eric Zhu
e3a2f79e65 Orchestrator Chat and OAI Assistant update (#31) 2024-05-28 18:11:55 -07:00
Eric Zhu
ecbc3b7806 oai assistant and pattern fixes (#30) 2024-05-28 22:49:30 +00:00
Jack Gerrits
f4a5835772 prevent publish to self (#29) 2024-05-28 20:21:40 +00:00
Jack Gerrits
7568a7a447 impl state management (#28) 2024-05-27 20:25:25 -04:00
Jack Gerrits
afc1666d5b organize core submodule (#27) 2024-05-27 17:10:56 -04:00
Jack Gerrits
f8f7418ebf ensure agent name is unique, add some docs (#26) 2024-05-27 16:33:28 -04:00
Jack Gerrits
cb55e00819 Remove require_response, rename broadcast to publish, remove publish responses (#25)
* rename broadcast to publish

* remove require response, remove responses from publishing
2024-05-26 08:45:02 -04:00
Jack Gerrits
b6dd861166 Organize model client (#24)
* Organize model client

* update patterns
2024-05-26 12:21:48 +00:00
Jack Gerrits
39400e74dd Update docs.yml (#23) 2024-05-24 21:28:55 +00:00
Jack Gerrits
00ffb372d1 Update group chat and message types (#20)
* Update group chat and message types

* fix type based router
2024-05-24 21:25:17 +00:00
Jack Gerrits
ce58c5bc72 Update docs.yml (#22) 2024-05-24 17:24:29 -04:00
Jack Gerrits
4435881923 Update docs.yml (#21) 2024-05-24 17:21:45 -04:00
Jack Gerrits
fe7de35933 Update docs.yml (#19) 2024-05-24 17:58:13 +00:00
Jack Gerrits
f7353b24ec abs path (#18) 2024-05-24 17:56:13 +00:00
Jack Gerrits
d95084e886 Update docs.yml (#17) 2024-05-24 13:52:39 -04:00
Jack Gerrits
fd5ed50a84 Update docs.yml (#16) 2024-05-24 17:49:18 +00:00
Jack Gerrits
0299009244 Add initial docs site (#15)
* Add initial docs site

* add ci and readme

* Update checks.yml

* Update conf.py
2024-05-24 13:45:23 -04:00
Eric Zhu
d941a0a733 fix some bugs (#14) 2024-05-23 17:17:07 -07:00
Jack Gerrits
52f6f79591 Add types agnostic to role (#11) 2024-05-23 20:49:01 +00:00
Jack Gerrits
8d1f4aedc0 Add require response and remove generic types (#13) 2024-05-23 13:00:05 -07:00
Eric Zhu
d77390dc07 First draft for chat layer. (#10) 2024-05-23 08:23:24 -07:00
Jack Gerrits
1a9dddbcda Update README.md (#9) 2024-05-22 13:25:51 -04:00
Jack Gerrits
77c8cca9ae Implement intervention (#8) 2024-05-20 16:30:45 -07:00
Jack Gerrits
5afbadbe43 Add support for task cancellation (#7)
* Add support for task cancellation

* add tests to CI

* matrix for python testing
2024-05-20 15:32:08 -04:00
Jack Gerrits
f80c42e668 fix spelling error (#6) 2024-05-20 09:49:47 -04:00
Jack Gerrits
b4b1fd5bdd Make responses flow through the message queue (#5) 2024-05-19 17:12:49 -06:00
Eric Zhu
b67d096a95 Add example for round robin chat (#4) 2024-05-17 16:36:46 -07:00