gollm

API Reference

This directory contains the complete API reference for goLLM, including core functionality, CLI commands, and extension points.

Table of Contents

  1. Core API - Main classes and functions
  2. CLI Reference - Command-line interface documentation
  3. Extensions - Creating custom rules, commands, and formatters

Quick Start

Core API Example

from gollm import GollmCore

# Initialize
gollm = GollmCore()

# Validate code
result = gollm.validate_file("myfile.py")
print(f"Code quality score: {result['score']}")

CLI Example

# Validate code
gollm validate src/

# Generate code
gollm generate "Create a Flask web server" -o app.py

Core Concepts

GollmCore

The main entry point for programmatic access to goLLM functionality.

Code Validation

LLM Integration

Extension Points

Best Practices

  1. Error Handling: Always handle exceptions
  2. Logging: Use the built-in logging system
  3. Testing: Write tests for your code
  4. Documentation: Document your API usage