INNER CODE UNIT · Python
parse_arguments
i3T4AN/KADATH · seed/smolagents/src/smolagents/cli.py:45
def parse_arguments():
parser = argparse.ArgumentParser(description="Run a CodeAgent with all specified parameters")
parser.add_argument(
"prompt",
type=str,
nargs="?",
default=None,
help="The prompt to run with the agent. If no prompt is provided, interactive mode will be launched to guide user through agent setup",
)
parser.add_argument(
"--model-type",
type=str,
default="InferenceClientModel",
help="The model type to use (e.g., InferenceClientModel, OpenAIModel, LiteLLMModel, TransformersModel)",
)
parser.add_argument(
"--action-type",
type=str,