o
    mi                     @   s6   d Z ddlZddlmZ dd Zedkre  dS dS )zCLI entrypoint for running the agent from the project root.

This script constructs the `Agent` via package imports so relative imports
inside `agent_src` work correctly when invoking from the command line.
    N)Agentc                  C   s   t jdd} | jdddd | jdd dd	 | jd
tddd |  }|jr-d|j}ntd }t	|j
|jd}||}t|tr\|dr\td|d td|d d S td t| d S )NzRun the agent from CLI)descriptioninstruction*zInstruction to run)nargshelpz--modelzOptional model name)defaultr   z--stepsd   z	Max steps)typer   r    u   🗨️  Enter your request: )model	max_stepsawaitingzAwaiting user input token:zPrompt:promptz
=== Agent Result ===
)argparseArgumentParseradd_argumentint
parse_argsr   joininputstripr   r   stepsrun
isinstancedictgetprint)parserargsinstragentresult r#   ./cli.pymain
   s   
r%   __main__)__doc__r   agent_src.agentr   r%   __name__r#   r#   r#   r$   <module>   s   
