Karn (Karn v0.1.1)
A client interface for interacting with the main AI service
This module provides convenient functions for querying the AI, explaining code or modules, viewing/managing the conversation context,viewing usage and stopping the service.
Usage Example
# Query the AI
Karn.q("What is the difference between Elixir and Erlang?")
# Explain a module with specific references
Karn.e(MyModule, [MyModule.A, DependentModule], "How does function xyz work?")
# View the current conversation context
Karn.view_context()
# Reset the conversation context
Karn.reset_context()
# View usage()
Karn.usage()
# switch model
Karn.switch_model("google:gemini-2.0")
# reset model
Karn.reset_model
Summary
Functions
See Karn.AI.e/1.
See Karn.AI.q/1.
See Karn.AI.start/0.
See Karn.AI.stop/0.
See Karn.AI.usage/0.
Functions
See Karn.AI.e/1.
See Karn.AI.e/2.
See Karn.AI.e/3.
See Karn.AI.q/1.
See Karn.AI.start/0.
See Karn.AI.start/1.
See Karn.AI.stop/0.
See Karn.AI.usage/0.
See Karn.AI.view_state/0.