Class PythonBindexBuilder
java.lang.Object
org.machanism.machai.bindex.builder.BindexBuilder
org.machanism.machai.bindex.builder.PythonBindexBuilder
PythonBindexBuilder provides project context and manifest aggregation for Python (pyproject.toml) projects.
Reads TOML manifest and main source files; prepares prompts for GenAI Bindex creation.
Usage example:
PythonBindexBuilder builder = new PythonBindexBuilder(layout);
builder.genAIProvider(provider);
Bindex bindex = builder.build();
- Since:
- 0.0.2
- Author:
- Viktor Tovstyi
- See Also:
-
Field Summary
Fields inherited from class org.machanism.machai.bindex.builder.BindexBuilder
BINDEX_SCHEMA_RESOURCE, BINDEX_TEMP_DIR -
Constructor Summary
ConstructorsConstructorDescriptionPythonBindexBuilder(ProjectLayout projectLayout) Constructs a PythonBindexBuilder for Python projects with pyproject.toml. -
Method Summary
Modifier and TypeMethodDescriptionvoidProvides project manifest and main sources context to GenAIProvider for Bindex generation.Methods inherited from class org.machanism.machai.bindex.builder.BindexBuilder
bindexSchemaPrompt, build, genAIProvider, getGenAIProvider, getOrigin, getProjectLayout, origin
-
Constructor Details
-
PythonBindexBuilder
Constructs a PythonBindexBuilder for Python projects with pyproject.toml.- Parameters:
projectLayout- Project layout instance with directory info.
-
-
Method Details
-
projectContext
Provides project manifest and main sources context to GenAIProvider for Bindex generation. Reads pyproject.toml and sends Python source files as prompt context.- Overrides:
projectContextin classBindexBuilder- Throws:
IOException- On file or prompt failure.
-