Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions cmd/lk/simulate.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,20 @@ const (
)

var simulateCommand = &cli.Command{
Name: "simulate",
Aliases: []string{"simulation"},
Usage: "Run judged simulations of an agent on LiveKit Cloud",
Name: "simulate",
Aliases: []string{"simulation"},
Usage: "Run judged simulations of an agent on LiveKit Cloud",
ArgsUsage: "[entrypoint]",
// Hide the implicit `help` subcommand so shell completion falls back to
// native filename completion for the entrypoint arg (see startCommand).
HideHelpCommand: true,
// Bare `simulate` is `simulate text`: docs, the dashboard and published
// posts all tell users to run it without a subcommand.
Action: func(ctx context.Context, cmd *cli.Command) error {
return cli.ShowSubcommandHelp(cmd)
if _, err := loadSimulateProject(ctx, cmd); err != nil {
return err
}
return runSimulate(ctx, cmd, livekit.SimulationMode_SIMULATION_MODE_TEXT)
},
Commands: []*cli.Command{
simulateTextCommand, simulateAudioCommand, simulateListCommand, simulateViewCommand, simulateExportCommand,
Expand Down
Loading