Cleverbot.Session

A struct that holds the state of a cleverbot session consisting of session_id and history.

Source

Summary

update(session, message, response)

Updates a Cleverbot.Session‘s history and session_id to reflect the latest response and message

Types

session :: %Cleverbot.Session{session_id: binary | nil, history: [] | [binary]}

Functions

update(session, message, response)

Specs:

Updates a Cleverbot.Session‘s history and session_id to reflect the latest response and message.

Source