nemoguardrails.cli.debugger

View as Markdown

Module Contents

Functions

NameDescription
flowShows all details about a flow or flow instance.
flowsShows a table with all (active) flows ordered in terms of there interaction loop priority and name.
pausePause current interaction.
restartRestart the current Colang script.
resumePause current interaction.
run_command-
set_chat_stateRegister the chat state that will be used by the debugger.
set_output_stateRegisters the state that will be used by the debugger.
set_runtimeRegisters the runtime that will be used by the debugger.
treeLists the tree of all active flows.

Data

app

chat_state

runtime

state

API

nemoguardrails.cli.debugger.flow(
flow_name: str = typer.Argument(help='Name o...
)

Shows all details about a flow or flow instance.

nemoguardrails.cli.debugger.flows(
all: bool = typer.Option(default=False,...,
order_by_name: bool = typer.Option(default=False,...
)

Shows a table with all (active) flows ordered in terms of there interaction loop priority and name.

nemoguardrails.cli.debugger.pause()

Pause current interaction.

nemoguardrails.cli.debugger.restart()

Restart the current Colang script.

nemoguardrails.cli.debugger.resume()

Pause current interaction.

nemoguardrails.cli.debugger.run_command(
command: str
)
nemoguardrails.cli.debugger.set_chat_state(
_chat_state: nemoguardrails.cli.chat.ChatState
)

Register the chat state that will be used by the debugger.

nemoguardrails.cli.debugger.set_output_state(
_state: nemoguardrails.colang.v2_x.runtime.flows.State
)

Registers the state that will be used by the debugger.

nemoguardrails.cli.debugger.set_runtime(
_runtime: nemoguardrails.colang.v2_x.runtime.runtime.RuntimeV2_x
)

Registers the runtime that will be used by the debugger.

nemoguardrails.cli.debugger.tree(
all: bool = typer.Option(default=False,...
)

Lists the tree of all active flows.

nemoguardrails.cli.debugger.app = typer.Typer(name='!!!', no_args_is_help=True, add_completion=False)
nemoguardrails.cli.debugger.chat_state: Optional[ChatState] = None
nemoguardrails.cli.debugger.runtime: Optional[RuntimeV2_x] = None
nemoguardrails.cli.debugger.state: Optional[State] = None