Skip to content

Commit

Permalink
end_state defaults to "Indeterminate" when creating session
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieG committed Oct 30, 2024
1 parent 83882d7 commit fae47fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agentops/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Session:
Attributes:
init_timestamp (float): The timestamp for when the session started, represented as seconds since the epoch.
end_timestamp (float, optional): The timestamp for when the session ended, represented as seconds since the epoch. This is only set after end_session is called.
end_state (str, optional): The final state of the session. Suggested: "Success", "Fail", "Indeterminate"
end_state (str, optional): The final state of the session. Suggested: "Success", "Fail", "Indeterminate". Defaults to "Indeterminate".
end_state_reason (str, optional): The reason for ending the session.
"""
Expand All @@ -42,7 +42,7 @@ def __init__(
host_env: Optional[dict] = None,
):
self.end_timestamp = None
self.end_state: Optional[str] = None
self.end_state: Optional[str] = "Indeterminate"
self.session_id = session_id
self.init_timestamp = get_ISO_time()
self.tags: List[str] = tags or []
Expand Down

0 comments on commit fae47fe

Please sign in to comment.