Skip to content

Commit 6d55c38

Browse files
authored
feat: unify agent types (#139)
* style: save my todo comments Signed-off-by: Samantha Coyle <[email protected]> * feat: unify agent types and save my wip Signed-off-by: Samantha Coyle <[email protected]> * feat: save as i got 03 poc quickstart working Signed-off-by: Samantha Coyle <[email protected]> * feat: add durable agent examples and fixes Signed-off-by: Samantha Coyle <[email protected]> * fix(bug): support both template formats Signed-off-by: Samantha Coyle <[email protected]> * fix(bug): support our custom format with vars inline Signed-off-by: Samantha Coyle <[email protected]> * feat: agent + durableagent types, new cfg class, updated quickstarts/docs Signed-off-by: Samantha Coyle <[email protected]> * fix: some clean up Signed-off-by: Samantha Coyle <[email protected]> * style: more clean up on things reviewing my pr Signed-off-by: Samantha Coyle <[email protected]> * style: just more clean up of logs Signed-off-by: Samantha Coyle <[email protected]> * style: update docs Signed-off-by: Samantha Coyle <[email protected]> * fix: actorAgent -> assistantAgent and rm actoragent Signed-off-by: Samantha Coyle <[email protected]> * style: make linter happy Signed-off-by: Samantha Coyle <[email protected]> * test: add init test setup and cases Signed-off-by: Samantha Coyle <[email protected]> * feat: save an ex i created for what openapi agent looks like Signed-off-by: Samantha Coyle <[email protected]> * style: rm up openapi react agent ex Signed-off-by: Samantha Coyle <[email protected]> * style: more clean up for now Signed-off-by: Samantha Coyle <[email protected]> * refactor: rm openapireact + react agents Signed-off-by: Samantha Coyle <[email protected]> * refactor: mv durable agent with agent Signed-off-by: Samantha Coyle <[email protected]> * fix: update imports Signed-off-by: Samantha Coyle <[email protected]> * refactor: make agent + durable agent use same base class + rm config for now Signed-off-by: Samantha Coyle <[email protected]> * tests: add some init tests Signed-off-by: Samantha Coyle <[email protected]> * style: make linter happy Signed-off-by: Samantha Coyle <[email protected]> * fix: use tcp conn instead of app layer Signed-off-by: Samantha Coyle <[email protected]> * style: make linter happy Signed-off-by: Samantha Coyle <[email protected]> * style: make linter happy Signed-off-by: Samantha Coyle <[email protected]> * tests: add agent class tests + some clean up Signed-off-by: Samantha Coyle <[email protected]> * tests: add durableagent class tests Signed-off-by: Samantha Coyle <[email protected]> * style: make linter happy Signed-off-by: Samantha Coyle <[email protected]> * fix: make linter happy Signed-off-by: Samantha Coyle <[email protected]> * style: acct for linter errs Signed-off-by: Samantha Coyle <[email protected]> * style: run ruff Signed-off-by: Samantha Coyle <[email protected]> * fix: address many tox -e type errs, fix class inheritance mvment, replace generic data types with specific types Signed-off-by: Samantha Coyle <[email protected]> * fix: final type fix Signed-off-by: Samantha Coyle <[email protected]> * style: update docs on new quickstarts Signed-off-by: Samantha Coyle <[email protected]> * style: tox -e ruff + clean up comments Signed-off-by: Samantha Coyle <[email protected]> * fix: update for tox -e flake8 Signed-off-by: Samantha Coyle <[email protected]> * style: clean up print outs Signed-off-by: Samantha Coyle <[email protected]> * tests: make things testable and fix some existing test errs Signed-off-by: Samantha Coyle <[email protected]> * fix: clean up quickstarts, add tests i forgot earlier Signed-off-by: Samantha Coyle <[email protected]> * fix: last few fixes Signed-off-by: Samantha Coyle <[email protected]> * style: tox -e ruff Signed-off-by: Samantha Coyle <[email protected]> * fix(build): acct for build errs Signed-off-by: Samantha Coyle <[email protected]> * fix: add tox ini file Signed-off-by: Samantha Coyle <[email protected]> * style: fix linter Signed-off-by: Samantha Coyle <[email protected]> * fix: acct for posthog breaking change Signed-off-by: Samantha Coyle <[email protected]> * fix: address feedback Signed-off-by: Samantha Coyle <[email protected]> * fix: push test fixes Signed-off-by: Samantha Coyle <[email protected]> * style: rm actor references Signed-off-by: Samantha Coyle <[email protected]> * style: tox -e ruff Signed-off-by: Samantha Coyle <[email protected]> * fix(quickstart): use local agent updates Signed-off-by: Samantha Coyle <[email protected]> * fix: tox -e flake8 fixes Signed-off-by: Samantha Coyle <[email protected]> * fix: style dirs we want Signed-off-by: Samantha Coyle <[email protected]> * fix(build): install test deps properly Signed-off-by: Samantha Coyle <[email protected]> * fix: see if this fixes build err Signed-off-by: Samantha Coyle <[email protected]> * fix(cookbook): update one more reqs file to use local agent deps instead of old release tag Signed-off-by: Samantha Coyle <[email protected]> * fix: register agent properly in db Signed-off-by: Samantha Coyle <[email protected]> * style: rm duplicate quickstart sample Signed-off-by: Samantha Coyle <[email protected]> * style: make linter happy Signed-off-by: Samantha Coyle <[email protected]> * fix: ruff check --fix . Signed-off-by: Samantha Coyle <[email protected]> --------- Signed-off-by: Samantha Coyle <[email protected]>
1 parent 6509906 commit 6d55c38

File tree

151 files changed

+3088
-4502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+3088
-4502
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ jobs:
6060
run: |
6161
python -m pip install --upgrade pip
6262
pip install setuptools wheel tox
63+
- name: Install package and test dependencies
64+
run: |
65+
pip cache purge
66+
pip install --upgrade pip setuptools wheel
67+
pip install -e .
68+
pip install -e .[test]
6369
- name: Check Typing
6470
run: |
6571
tox -e type

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,12 @@ cython_debug/
169169

170170
.ruff_cache/
171171

172-
quickstarts/05-multi-agent-workflow-dapr-workflows/services/**/*_state.json
172+
# Quickstart outputs
173+
*_state.json
174+
quickstarts/**/*_state.json
175+
chroma_db/
176+
db/
173177

174178
# Requirements files since we use pyproject.toml instead
175179
requirements.txt
176-
dev-requirements.txt
180+
dev-requirements.txt

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# Get all directories within quickstarts
22
QUICKSTART_DIRS := $(shell find quickstarts -mindepth 1 -maxdepth 1 -type d -exec basename {} \;)
33

4+
# Test targets
5+
.PHONY: test
6+
test:
7+
@echo "Running tests..."
8+
python -m pytest tests/ -v --tb=short
9+
10+
.PHONY: test-cov
11+
test-cov:
12+
@echo "Running tests with coverage..."
13+
python -m pytest tests/ -v --cov=dapr_agents --cov-report=term-missing --cov-report=html
14+
15+
.PHONY: test-install
16+
test-install:
17+
@echo "Installing test dependencies..."
18+
pip install install -e .[test]
19+
20+
.PHONY: test-all
21+
test-all: test-install test-cov
22+
@echo "All tests completed!"
23+
424
# Main target to validate all quickstarts
525
.PHONY: validate-quickstarts
626
validate-quickstarts:

cookbook/agents/basic_oai_agent_react.ipynb

Lines changed: 92 additions & 123 deletions
Large diffs are not rendered by default.

cookbook/agents/openapi/README.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)