-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update tests and streamlit_app
- Loading branch information
1 parent
e1ef1a1
commit 31817f7
Showing
6 changed files
with
30 additions
and
41 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 was deleted.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
''' | ||
Test cases for the search_studies | ||
''' | ||
|
||
# from ..tools.search_studies import search_studies | ||
from aiagents4pharma.talk2cells.agents.agent_scp import get_app | ||
from langchain_core.messages import HumanMessage | ||
|
||
def test_agent_scp(): | ||
''' | ||
Test the agent_scp. | ||
''' | ||
unique_id = 12345 | ||
app = get_app(unique_id) | ||
config = {"configurable": {"thread_id": unique_id}} | ||
prompt = "Search for studies on Crohns Disease." | ||
response = app.invoke( | ||
{"messages": [HumanMessage(content=prompt)]}, | ||
config=config | ||
) | ||
assistant_msg = response["messages"][-1].content | ||
# Check if the assistant message is a string | ||
assert isinstance(assistant_msg, str) |
This file was deleted.
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
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