Enkaidu::Slash::IncludeCommand
Inherits Tools::ImageHelper < Tools::FileHelper < Tools::AudioHelper < Tools::FileHelper < Enkaidu::Slash::Command < Reference < Object
Constants
HELP = "#{HELP_BRIEF}\n- `image_file <PATH>`\n - Prepare image data from a file to _include_ with the next query;\n make sure the LLM model supports vision/image processing.\n- `text_file <PATH>`\n - Prepare text from a file to _include_ with the next query.\n- `audio_file <PATH>`\n - Prepare audio data from a file to _include_ with the next query;\n make sure the LLM model supports audio processing.\n- `any_file <PATH>`\n - Prepare a file (with it's base name) to _include_ with the next query;\n make sure the LLM model supports file data along.\n- `response_json_schema <PATH>`\n - Use the given file as the JSON schema description to tell the model that the\n next request's response should be a JSON object matching the schema.\n - The input should be a file with a JSON object defined as follows:\n `{ \"name\" : <string>, \"description\": <string>, \"strict\": <bool>, \"schema\": <object> }`"
HELP_BRIEF = "`#{NAME} [<sub-command>]` - Include attachments for next query"
NAME = "/include"
Instance methods
name
Sourcetake_inclusions!
Returns a ChatInclusions if present, removing it from the command state.
The response schema is not cleared
take_response_schema!
Returns the ResponseSchema if present, removing it from the command state.
The inclusions are not cleared.