INNER CODE UNIT · Python
interactive_mode
i3T4AN/KADATH · seed/smolagents/src/smolagents/cli.py:110
def interactive_mode():
"""Run the CLI in interactive mode"""
console.print(
Panel.fit(
"[bold magenta]🤖 SmolaGents CLI[/]\n[dim]Intelligent agents at your service[/]", border_style="magenta"
)
)
console.print("\n[bold yellow]Welcome to smolagents![/] Let's set up your agent step by step.\n")
# Get user input step by step
console.print(Rule("[bold yellow]⚙️ Configuration", style="bold yellow"))
# Get agent action type
action_type = Prompt.ask(
"[bold white]What action type would you like to use? 'code' or 'tool_calling'?[/]",
default="code",
choices=["code", "tool_calling"],