-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce tool selector agent (#183)
* introduce DeciderAgent * introduce dicider agent * add test for decider agent * remove test code * add comments * phrasing and formatting * more intuitive naming of classes ("selector") * remove ChatGSE mentions * get last tool_result from message list and introduce rag agent selector to conversation * fix test code * fix minor errors * conditional to not run coverage badge and push in PR CI * formatting, phrasing * formatting * pre-commit * add missed type'List' * fix merge error * restore method get_description * use `List` from typing for type hints consistently * use `Tuple` class for type hinting * use `Dict` From typing for type hints * pre-commit * add missing type `List` * missed some `Dict`s --------- Co-authored-by: fengsh <[email protected]> Co-authored-by: slobentanzer <[email protected]>
- Loading branch information
1 parent
793ca55
commit f058565
Showing
41 changed files
with
1,230 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ benchmark/data/* | |
serve.sh | ||
.blast/* | ||
.api_results/* | ||
*.coverage | ||
*.coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from datetime import datetime | ||
import re | ||
|
||
from nltk.corpus import wordnet | ||
import pytest | ||
import importlib_metadata | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import inspect | ||
from urllib.parse import urlencode | ||
import inspect | ||
|
||
import pytest | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from .abc import BaseQueryBuilder, BaseFetcher, BaseInterpreter | ||
from .api_agent import APIAgent | ||
from .abc import BaseFetcher, BaseInterpreter, BaseQueryBuilder | ||
from .blast import ( | ||
BlastQueryParameters, | ||
BlastQueryBuilder, | ||
BlastFetcher, | ||
BlastInterpreter, | ||
BlastQueryBuilder, | ||
BlastQueryParameters, | ||
) | ||
from .oncokb import OncoKBQueryBuilder, OncoKBFetcher, OncoKBInterpreter | ||
from .oncokb import OncoKBFetcher, OncoKBInterpreter, OncoKBQueryBuilder | ||
from .api_agent import APIAgent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MAX_AGENT_DESC_LENGTH = 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.