INNER CODE UNIT · Go

main

teilomillet/gollm · cmd/gollm/main.go:18

func main() {
	// Existing flags
	promptType := flag.String("type", "raw", "Prompt type (raw, qa, cot, summarize, optimize)")
	verbose := flag.Bool("verbose", false, "Display verbose output including full prompt")
	provider := flag.String("provider", "", "LLM provider (anthropic, openai, groq, mistral, ollama, cohere)")
	model := flag.String("model", "", "LLM model")
	temperature := flag.Float64("temperature", -1, "LLM temperature")
	maxTokens := flag.Int("max-tokens", 0, "LLM max tokens")
	timeout := flag.Duration("timeout", 0, "LLM timeout")
	apiKey := flag.String("api-key", "", "API key for the specified provider")
	maxRetries := flag.Int("max-retries", 3, "Maximum number of retries for API calls")
	retryDelay := flag.Duration("retry-delay", time.Second*2, "Delay between retries")
	debugLevel := flag.String("debug-level", "warn", "Debug level (debug, info, warn, error)")
	outputFormat := flag.String("output-format", "", "Output format for structured responses (json)")

	// New flags for prompt optimization
	optimizeGoal := flag.String("optimize-goal", "Improve the prompt's clarity and effectiveness", "Optimization goal")
	optimizeIterations := flag.Int("optimize-iterations", 5, "Number of optimization iterations")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…