Skip to main content

parse_session_json

Function parse_session_json 

Source
pub fn parse_session_json(
    json: &str,
    workspace_id: &str,
) -> Result<ChatSession, CopilotError>
Expand description

Parse a chat session from JSON content

§Errors

Returns an error if the JSON is invalid or doesn’t match the expected format.