Mojentic.LLM.Tools.AskUser (Mojentic v1.2.0)

Copy Markdown View Source

Tool for asking the user a question and receiving their input.

This tool allows the LLM to request help from the user when it needs additional information or doesn't know how to proceed. The user's response is returned as the tool result.

Examples

alias Mojentic.LLM.Tools.AskUser

tool = AskUser.new()
{:ok, result} = AskUser.run(tool, %{
  "user_request" => "What is your favorite color?"
})
# Prompts user for input:
#
#
#
# I NEED YOUR HELP!
# What is your favorite color?
# Your response: blue
#
# Returns: {:ok, "blue"}

Summary

Functions

Creates a new AskUser tool instance.

Functions

new()

Creates a new AskUser tool instance.