Skip to content

Commit

Permalink
fix: fix tools type in response model
Browse files Browse the repository at this point in the history
Signed-off-by: Palaniappan R <[email protected]>
  • Loading branch information
palaniappan-r committed Oct 28, 2024
1 parent b10177f commit 915e20b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/src/api/models/response_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ class ChatResponse(BaseModel):
response: str
sources: list[str] = []
context: list[str] = []
tool: str
tools: list[str] = []


class ChatToolResponse(BaseModel):
response: str
sources: list[str] = []
context: list[str] = []
tool: str
tools: list[str] = []
1 change: 0 additions & 1 deletion backend/src/api/routers/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ async def get_agent_response(user_input: UserInput) -> ChatResponse:
output = list(rg.graph.stream(inputs))
else:
raise ValueError("RetrieverGraph not initialized.")

urls: list[str] = []
context: list[str] = []

Expand Down

0 comments on commit 915e20b

Please sign in to comment.