This pull request includes several changes to improve the handling of task assignments and update the related tests and methods accordingly. The most important changes include updating method parameters and prompt text to use "assignee" instead of "userName," removing the lastUpdateByUser field, and adding new test cases to validate task assignment functionality.
This pull request includes several changes to improve the handling of task assignments and update the related tests and methods accordingly. The most important changes include updating method parameters and prompt text to use "assignee" instead of "userName," removing the
lastUpdateByUser
field, and adding new test cases to validate task assignment functionality.Updates to method parameters and prompt text:
src/main/java/com/fmoreno/telegramtaskaiagent/agents/ManagerAgent.java
: Changed method parameters and prompt text to use "assignee" instead of "userName" inbuildPrompt
and other related methods. [1] [2] [3]src/main/java/com/fmoreno/telegramtaskaiagent/agents/NL2SQLAgent.java
: UpdatedprocessNaturalLanguageToSQL
method to use "assignee" instead of "userName."Database model changes:
src/main/java/com/fmoreno/telegramtaskaiagent/persistence/model/TaskEntity.java
: Removed thelastUpdateByUser
field from theTaskEntity
class.Test case additions and updates:
src/test/java/com/fmoreno/telegramtaskaiagent/agents/NL2SQLAgentTestIT.java
: Added new test cases to validate task creation with specific assignees.src/test/java/com/fmoreno/telegramtaskaiagent/persistence/TaskRepositoryTestIT.java
: Added new test cases to validate task assignment updates and ensure correct assignee handling.