Core Types¶
genie_tooling.core.types ¶
Core shared types and protocols for the middleware.
Classes¶
Plugin ¶
Bases: Protocol
Base protocol for all plugins.
Attributes¶
Functions¶
setup
async
¶
Optional asynchronous setup method for plugins.
This method is called by the PluginManager after a plugin is instantiated. It is the primary mechanism for a plugin to receive its configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
Optional[Dict[str, Any]]
|
A dictionary containing the specific configuration for this
plugin instance. This dictionary is sourced from the relevant
|
None
|
Source code in src/genie_tooling/core/types.py
teardown
async
¶
Document ¶
Bases: Protocol
Represents a loaded document before splitting.
Chunk ¶
Bases: Protocol
Represents a chunk of a document after splitting.
RetrievedChunk ¶
StructuredError ¶
Bases: TypedDict
Standardized structure for reporting errors, especially to LLMs.