Skip to content

Rawi (راوي) Documentation | Reference `ask` Command

Ask AI a question and get a response. Supports piped input from stdin. You can specify a profile, continue or start chat sessions, and use act templates for specialized prompts.

See also: Rawi Documentation

rawi ask [options] [query]
  • query
    The question or prompt to send to the AI (can be combined with piped input).
  • -p, --profile <profile> (string)
    Profile to use for AI configuration (default: “default”).

  • --session <sessionId> (string)
    Continue an existing chat session.

  • --new-session (boolean)
    Start a new chat session.

  • --act <template> (string)
    Use an act template (e.g., ethereum-developer).

  • --list-acts (boolean)
    List all available act templates.

  • --show (boolean)
    Show details of the specified act template (use with —act).

  • --verbose (boolean)
    Show detailed status and debug information.

  • -h, --help (boolean)
    Display help for command.

  • --version (boolean)
    Display the version of this tool.

Ask a question directly:

Terminal window
$ rawi ask "What is the capital of France?"

Pipe input from another command:

Terminal window
$ echo "Summarize this text" | rawi ask

Use a specific profile:

Terminal window
$ rawi ask -p work "Generate a Python script for data analysis"

Continue a chat session:

Terminal window
$ rawi ask --session 12345 "Continue our previous conversation"

Start a new chat session:

Terminal window
$ rawi ask --new-session "Start a new topic"

Use an act template:

Terminal window
$ rawi ask --act ethereum-developer "Write a smart contract"

List all available act templates:

Terminal window
$ rawi ask --list-acts

Show details of a specific act template:

Terminal window
$ rawi ask --act ethereum-developer --show

For more information, see the Rawi documentation or run rawi ask --help.