Overview
TheKapso class is the main entry point for the framework. It provides methods for research, learning, evolving, and deploying solutions.
Constructor
Parameters
Examples
Methods
research()
Run deep web research for a query.Parameters
Returns
ResearchFindings containing:
ideas: List ofSource.Ideaobjectsimplementations: List ofSource.Implementationobjectsreport: OptionalSource.ResearchReport(if mode includes study)
Example
learn()
Learn from knowledge sources.Parameters
Returns
PipelineResult with:
sources_processed: Number of sources processedtotal_pages_extracted: Pages extractedcreated: New pages creatededited: Pages merged/edited with existingerrors: List of errors
Example
evolve()
Evolve a solution through experimentation.Parameters
initial_repo Options
The initial_repo parameter accepts three types of values:
Returns
SolutionResult with:
goal: Original goalcode_path: Path to generated codeexperiment_logs: List of experiment summariesfinal_feedback:FeedbackResultwith stop decision and scoremetadata: Cost, iterations, final evaluation
Example
deploy()
Deploy a solution as running software.Parameters
Returns
Software instance with:
run(inputs): Execute with inputsstop(): Stop and cleanupstart(): Restartis_healthy(): Health checklogs(): Get logs
Example
index_kg()
Index knowledge data into the KG.Parameters
Returns
Path to created.index file.