Skip to content

Commit

Permalink
Merge branch 'main' into staging/deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-cohere authored Aug 20, 2024
2 parents 3263183 + a16fa2e commit 3be4afd
Show file tree
Hide file tree
Showing 9 changed files with 1,351 additions and 96 deletions.
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/backend/services/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ async def consolidate_agent_files_in_compass(
"index": agent_id,
"file_id": file_id,
"file_bytes": fetched_doc["text"],
"filename": fetched_doc["file_name"],
"custom_context": {
"file_id": file_id,
"file_name": fetched_doc["file_name"],
Expand Down Expand Up @@ -569,6 +570,7 @@ async def insert_files_in_compass(
"index": new_file_id if index is None else index,
"file_id": new_file_id,
"file_bytes": file_bytes,
"filename": filename,
"custom_context": {
"file_id": new_file_id,
"file_name": filename,
Expand Down
7 changes: 2 additions & 5 deletions src/community/tools/clinicaltrials.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ def __init__(self, url="https://clinicaltrials.gov/api/v2/studies"):
def is_available(cls) -> bool:
return True

def call(
self,
parameters: Dict[str, Any],
ctx: Any,
n_max_studies: int = 10,
async def call(
self, parameters: Dict[str, Any], ctx: Any, n_max_studies: int = 10, **kwargs
) -> List[Dict[str, Any]]:
query_params = {"sort": "LastUpdatePostDate"}
if condition := parameters.get("condition", ""):
Expand Down
Loading

0 comments on commit 3be4afd

Please sign in to comment.