ElixirScope.AI.LLM.Providers.Mock (elixir_scope v0.0.1)
Mock LLM provider for testing and fallback scenarios.
Provides realistic responses without external API calls, useful for testing, development, and when real providers fail.
Summary
Functions
Analyzes code and returns a mock analysis.
Explains an error and returns a mock explanation.
Simulates an error response for testing error handling.
Suggests a fix and returns a mock suggestion.
Functions
@spec analyze_code(String.t(), map()) :: ElixirScope.AI.LLM.Response.t()
Analyzes code and returns a mock analysis.
@spec explain_error(String.t(), map()) :: ElixirScope.AI.LLM.Response.t()
Explains an error and returns a mock explanation.
@spec simulate_error(String.t()) :: ElixirScope.AI.LLM.Response.t()
Simulates an error response for testing error handling.
@spec suggest_fix(String.t(), map()) :: ElixirScope.AI.LLM.Response.t()
Suggests a fix and returns a mock suggestion.