Documentation
¶
Index ¶
- Constants
- func AddModelFlag(command *cobra.Command)
- func EnsureModel(ctx context.Context, services *container.ServiceContainer, cfg *config.Config, ...) error
- func Generate(cmd *cobra.Command, services *container.ServiceContainer, cfg *config.Config, ...) (string, error)
- func NewCommand(state *runtime.State) *cobra.Command
Constants ¶
View Source
const ModelFlag = "model"
ModelFlag names the flag that picks the model the analysis runs on.
Variables ¶
This section is empty.
Functions ¶
func AddModelFlag ¶
AddModelFlag declares --model on any command that generates an insights report, so `infer reset insights` spells it the same way.
func EnsureModel ¶
func EnsureModel(ctx context.Context, services *container.ServiceContainer, cfg *config.Config, modelFlag string) error
EnsureModel starts the gateway and selects the model the analysis runs on. A one-shot command has no chat session to inherit a selection from, so without this the generator asks the gateway for an empty model.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.