File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ func newEvalCmd() *cobra.Command {
1919 var flags evalFlags
2020
2121 cmd := & cobra.Command {
22- Use : "eval <agent-file>|<registry-ref> <eval-dir>" ,
22+ Use : "eval <agent-file>|<registry-ref> [ <eval-dir>|./evals] " ,
2323 Short : "Run evaluations for an agent" ,
2424 GroupID : "advanced" ,
25- Args : cobra .ExactArgs ( 2 ),
25+ Args : cobra .RangeArgs ( 1 , 2 ),
2626 RunE : flags .runEvalCommand ,
2727 }
2828
@@ -37,7 +37,10 @@ func (f *evalFlags) runEvalCommand(cmd *cobra.Command, args []string) error {
3737 ctx := cmd .Context ()
3838 out := cli .NewPrinter (cmd .OutOrStdout ())
3939 agentFilename := args [0 ]
40- evalsDir := args [1 ]
40+ evalsDir := "./evals"
41+ if len (args ) >= 2 {
42+ evalsDir = args [1 ]
43+ }
4144
4245 agentFilename , err := agentfile .Resolve (ctx , out , agentFilename )
4346 if err != nil {
You can’t perform that action at this time.
0 commit comments