Packages

Extreme minimal AI assistant with persistent PTY, recursive sub-agents, and CLI-based MCP/browser integration (mcporter, agent-browser)

Retired package: Release invalid - Deprecated due to missing config files

Current section

Files

Jump to
eai config tools list_chat_sessions.exs
Raw

config/tools/list_chat_sessions.exs

defmodule Eai.Tool.ListChatSessions do
@behaviour Eai.Tool
@impl true
def schema do
%{
type: "function",
function: %{
name: "list_chat_sessions",
description:
"List all active chat sessions with their message count and status (idle/busy).",
parameters: %{type: "object", properties: %{}, required: []}
}
}
end
@impl true
def execute(_args, _pty_session_id, _chat_session_id) do
Eai.Naming.chat().list_chat_sessions()
|> Eai.Utils.sanitize_value()
|> Jason.encode!()
end
end