vibe.interview_modes.base¶
Protocol definition for interview mode extensions.
InterviewModeExtension ¶
Protocol for interview mode extensions.
Interview modes control the UI layout and behavior for templates. Extensions can register custom modes to provide specialized interfaces without modifying core VIBE code.
Built-in modes (standard) are handled by the registry fallback and don't need explicit extensions.
| Attributes: |
|
|---|
get_layout_template ¶
get_layout_template() -> str
Return the Jinja template path for this mode's layout.
The template should extend 'layout/shell.html' and define the main content area.
| Returns: |
|
|---|
handle_start ¶
handle_start(template: TemplateData, version: str | None) -> Optional[Response]
Handle the /interview/
Called when a user navigates to a template with this interview_mode. Use this to redirect to a custom entry point, perform initialization, or modify the default behavior.
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_template_context ¶
get_template_context(template: TemplateData, base_context: dict[str, Any]) -> dict[str, Any]
Extend the template context for this mode's layout.
Called when rendering the interview page. Use this to add mode-specific variables or modify the base context.
| Parameters: |
|
|---|
| Returns: |
|
|---|