API#

The main Kork API is shown here:

CodeChain(*[, memory, callback_manager, ...])

A coding chain.

AstPrinter()

Default AST Printer implementation.

AbstractContextRetriever()

Abstract interface for retrieving programming context.

SimpleContextRetriever([external_functions])

Retrieve information as was provided without any filtering or re-ranking.

AbstractExampleRetriever()

Abstract interface for an example retriever.

SimpleExampleRetriever(examples)

Simple example retriever.

Kork Interpreter#

InterpreterResult

Use this to return the result of the interpreter.

run_interpreter(code[, environment])

Run the interpreter with the given code.

Environment(parent, variables, typing.Any] =)

Environment for storing variables and function definitions.

KorkException

Generic Kork exception.

Index#