Skip to content

Commit

Permalink
added logging and changed truth score
Browse files Browse the repository at this point in the history
  • Loading branch information
bwsarge committed Mar 9, 2024
1 parent c45eafe commit 0d14416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class VoteInitialisation(BaseModel):

class Vote(BaseModel):
category: FactCheckCategory
truthScore: Optional[Annotated[int, Field(ge=0, le=5)]] = None
truthScore: Optional[Annotated[int, Field(ge=1, le=5)]] = None

class UnsupportedMessageTypeException(Exception):
pass
1 change: 1 addition & 0 deletions implementation/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def process_call(tool_call):
run_id=run.id,
tool_outputs=tool_outputs
)
logging.info(f"Agent complete: {agent_complete}, thread_id: {thread.id}, run_id: {run.id}")
if not agent_complete:
raise TimeoutError("Agent did not complete in time")
if not self.category:
Expand Down

0 comments on commit 0d14416

Please sign in to comment.