Files
copilotkit--copilotkit/showcase/shared/python/middleware/__init__.py
T
2026-07-13 12:58:18 +08:00

22 lines
509 B
Python

"""Reusable middleware for CopilotKit showcase agents.
Context-driven middleware that reads render_mode and output_schema from
CopilotKit runtime context and adjusts agent behaviour accordingly.
"""
from .render_mode import (
get_render_mode,
get_output_schema,
apply_render_mode_prompt,
apply_render_mode,
JSONL_RENDER_INSTRUCTION,
)
__all__ = [
"get_render_mode",
"get_output_schema",
"apply_render_mode_prompt",
"apply_render_mode",
"JSONL_RENDER_INSTRUCTION",
]