Enkaidu::SessionRenderer
SessionRenderer defines the interface for rendering session output and user prompts within the Enkaidu application. These are callbacks from the app session so that we can implement different rendering systems.
Instance methods
llm_image_url(url)
Sourcellm_tool_call(name, args)
Sourcemcp_calling_tool(uri, name, args)
Sourcemcp_calling_tool_result(uri, name, result)
Sourcemcp_error(ex)
Sourcemcp_initialized(uri)
Sourcemcp_prompt_ready(prompt)
Sourcemcp_prompts_found(count)
Sourcemcp_tool_ready(function)
Sourcemcp_tools_found(count)
Sourcesession_popped(depth)
Sourcesession_pushed(depth, keep_tools, keep_prompts, keep_history)
Sourcesession_reset(session : Session)
Sourcesession_stack_changed(name)
Sourcesession_stack_new(name)
Sourceuser_confirm_security_question?(description, subject : String | Array(String), banner : NamedTuple(safe: Bool, message: String) | Nil = nil) : Bool
Prompt the user with a confirmation request for security confirmation
by presenting the description followed by the subject of the question.
The renderer should further emphasize the subject when presenting the question.
@return True to confirm, false otherwise.
user_confirm_shell_command?(command)
SourcePresent prompt and ask for inputs if arguments are defined and no values are
present in params.