RegistryΒΆ
registry ΒΆ
ClassesΒΆ
RegistryError ΒΆ
Bases: RuntimeError
Raised when a registry operation fails.
TypeRegistry ΒΆ
In-memory registry for blackboard artifact types.
Source code in src/flock/registry.py
FunctionsΒΆ
resolve_name ΒΆ
Resolve a type name (simple or qualified) to its canonical form.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
type_name | str | Simple name ("Document") or qualified ("main.Document") | required |
Returns:
Type | Description |
---|---|
str | Canonical type name from registry |
Raises:
Type | Description |
---|---|
RegistryError | Type not found or ambiguous |
Source code in src/flock/registry.py
FunctionRegistry ΒΆ
FunctionsΒΆ
flock_type ΒΆ
Decorator to register a Pydantic model as a blackboard artifact type.
Source code in src/flock/registry.py
flock_tool ΒΆ
Decorator to register a deterministic helper function for agents.