Enkaidu::WUI::EventRenderer
Inherits Enkaidu::SessionRenderer < Reference < Object
This class is responsible for rendering console outputs into a queue for retrieval by API
Constants
LLM_MAX_TOOL_CALL_ARGS_LENGTH = 72
MCP_MAX_TOOL_CALL_ARGS_LENGTH = 72
MCP_MAX_TOOL_RESULT_LENGTH = 72
Constructors
Instance methods
event?
Sourcellm_error(err, message : String | Nil = nil)
Sourcellm_image_url(url)
Sourcellm_text(text, reasoning : Bool, starting : Bool = false, ending : Bool = false)
Sourcellm_text_block(text, reasoning : Bool)
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_ask_input(prompt : MCPPrompt) : Hash(String, String)
Sourcemcp_prompt_ready(prompt)
Sourcemcp_prompts_found(count)
Sourcemcp_tool_ready(function)
Sourcemcp_tools_found(count)
Sourcerespond_to_confirmation(confirmation_id : String, approved : Bool)
Server handler calls to provide response to a pending confirmation request
respond_to_input(input_id : String, inputs : Hash(String, String))
Server handler calls to provide response to a pending confirmation request
session_popped(depth)
Sourcesession_pushed(depth, keep_tools, keep_prompts, keep_history)
Sourcesession_reset
Sourcesession_stack_changed(name)
Sourcesession_stack_new(name)
Sourcestreaming=(streaming : Bool)
Sourcestreaming?
Sourcetime_elapsed(duration : Time::Span, label : String | Nil = nil)
Sourceuser_confirm_security_question?(description, subject : String | Array(String)) : 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_prompt_ask_input(prompt : TemplatePrompt, params : Hash | Nil = nil) : Hash(String, String)
Present prompt and ask for inputs if arguments are defined and no values are
present in params.