Skip to main content

get_session

Function get_session 

Source
pub fn get_session(id: &str) -> Result<SessionDetail, String>
Expand description

Get a specific chat session by ID

Retrieves the full content of a saved chat session.

§Arguments

  • id - The session ID to retrieve

§Returns

  • Ok(SessionDetail) - The session content
  • Err(String) - Error message if session is not found or cannot be read