Skip to main content
Everything public is importable from the top-level kapso package.

Constructor

Methods at a glance

evolve

Runs the experiment campaign: design a candidate, implement it, score it, refine.

SolutionResult

inbox and reply

A campaign pauses when a session needs something only you can provide; see the inbox. Two static methods act on a paused campaign directory.
inbox returns the open requests, oldest first, each with id, key, hit, tried, fix and next_steps. inbox_ideas returns one line per node of the campaign, the idea a request was made for, keyed by node id; kapso inbox prints it as the for row. reply records the note and, once every request of the node that asked is answered, resumes the campaign in this process and returns its result. It returns None when another request of that node is still open, or when the campaign was started with an iteration_evaluator: the callback lives in your script, so call evolve() again there with resume=True. It raises while a live process holds the campaign.

research

mode and depth are keyword-only.

ResearchFindings

learn

Learns from one finished campaign: import it, mine it, grade the bank against it, then fold the result in as evidence-priced cards.

LessonResult

learn_knowledge

Folds outside sources into the knowledge graph. This is the other memory: learn() mines your own campaigns, learn_knowledge() imports other people’s work.

Source variants

PipelineResult

deploy

AUTO picks a strategy for you. See Deployment strategies.

index_kg

Indexes a corpus and returns the path of the .index file it wrote.

memory

A property, not a method. Reports what this agent knows across both stores.

status

A static method. Reading a run needs no constructed agent.
path accepts a workspace, a status file, or a directory of status files. view.explain() renders the same screen as kapso watch.

close

Releases the knowledge-search network clients: Weaviate, Neo4j and embeddings.
Idempotent, and registered at construction to run on exit, so scripts finish without unclosed-socket warnings. Calling it early is safe; index_kg() and learn_knowledge() reconnect.

CLI

The same operations from the command line

Configuration

Every key in config.yaml
Related pages: CLI · Configuration · CLI Kapso is an open-source framework by Leeroo that builds software toward measurable goals through experiment campaigns. Source code: github.com/Leeroo-AI/kapso · Install: pip install leeroo-kapso · Every page as plain text: llms.txt.