Skip to content

Commit

Permalink
Add type hint for return
Browse files Browse the repository at this point in the history
  • Loading branch information
sprajosh committed Jun 26, 2024
1 parent 3c43888 commit 2b745b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agentops/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def end_session(
end_state_reason: Optional[str] = None,
video: Optional[str] = None,
is_auto_end: Optional[bool] = None,
):
) -> Decimal:
"""
End the current session with the AgentOps service.
Expand Down Expand Up @@ -419,6 +419,7 @@ def end_session(

if token_cost is None or token_cost == "unknown":
logger.info("Could not determine cost of run.")
token_cost_d = Decimal(0)
else:
token_cost_d = Decimal(token_cost)
logger.info(
Expand Down

0 comments on commit 2b745b6

Please sign in to comment.