Skip to content

Sessions

Sessions allow Florentine.ai to enable a server-side chat history.

Since the client/agent including the MCP server usually keeps track of the chat history itself it is not absolutely essential to add a session

However it might still help Florentine.ai to get a better understanding of the context and might increase result quality.

Providing a session

You have two options to include a sessionId:

  • As the SESSION_ID env variable in your MCP setup config (possible in static and dynamic mode)
  • As the sessionId parameter to the florentine_ask tool (possible only in dynamic mode)

Provide as ENV variable

json
"env": {
  "SESSION_ID": "<YOUR_SESSION_ID>"
}

Provide as tool parameter

json
{
  "sessionId": "<YOUR_SESSION_ID>"
}