dapr-agents/tests
Roberto Rodriguez c28e31c892
Refactor LLM Workflows and Orchestrators for Unified Response Handling and Iteration (#163)
* Refactor ChatClientBase: drop Pydantic inheritance and add typed generate() overloads

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

* Align all LLM chat clients with refactored base and unified response models

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

* Unify LLM utils across providers and delegate streaming/response to provider‑specific handlers

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

* Refactor LLM pipeline: add HuggingFace tool calls, unify chat client/response types, and switch DurableAgent to loop‑based workflow

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

* Refactor orchestrators with loops and unify LLM response handling using LLMChatResponse

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

* test remaining quickstarts after all changes

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

* run pytest after all changes

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

* Run linting and formatting checks to ensure code quality

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

* Update logging, Orchestrator Name and OTel module name

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>

---------

Signed-off-by: Roberto Rodriguez <9653181+Cyb3rWard0g@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2025-07-28 12:39:56 -07:00
..
agents Refactor LLM Workflows and Orchestrators for Unified Response Handling and Iteration (#163) 2025-07-28 12:39:56 -07:00
document/embedder feat: unify agent types (#139) 2025-07-07 07:36:23 -07:00
llm ElevenLabs Python SDK updates and advanced TTS support (#154) 2025-07-20 19:29:28 -07:00
storage/vectorstores feat: unify agent types (#139) 2025-07-07 07:36:23 -07:00
workflow/orchestrators Refactor LLM Workflows and Orchestrators for Unified Response Handling and Iteration (#163) 2025-07-28 12:39:56 -07:00
README.md feat: unify agent types (#139) 2025-07-07 07:36:23 -07:00
__init__.py test: init test setup and some tests + dev docs and proper setup with pyproject.toml (#137) 2025-06-30 14:36:05 -07:00
conftest.py Refactor workflow features into mixins for messaging, pub/sub, state management, and service logic 2025-07-23 05:56:00 -04:00
test_signal_handlers.py fix(bug): handle graceful shutdown signals across platforms (#152) 2025-07-09 14:23:19 -07:00

README.md

Tests

Running Tests

Run all tests

pytest tests/ -v

Run tests with coverage

pytest tests/ -v --cov=dapr_agents --cov-report=term-missing --cov-report=html

Run specific test file

pytest tests/document/embedder/test_sentence.py -v

Run specific test class

pytest tests/document/embedder/test_sentence.py::TestSentenceTransformerEmbedder -v

Run specific test method

pytest tests/document/embedder/test_sentence.py::TestSentenceTransformerEmbedder::test_embedder_creation -v

Test Organization

Tests are organized by module/class functionality, and we try to mimic the folder structure of the repo.