You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
839 B
Python
26 lines
839 B
Python
from __future__ import annotations
|
|
from typing import Optional
|
|
from agentkit.context import ConversationContext
|
|
from agentkit.types import PluginConfigParam, OnProgressCallback
|
|
|
|
class AgentKitPreprocessor:
|
|
CONFIG: list[PluginConfigParam] = []
|
|
OUTPUT: list[PluginConfigParam] = []
|
|
|
|
def __init__(self, props: dict, **kwargs):
|
|
pass
|
|
|
|
async def __aenter__(self):
|
|
return self
|
|
|
|
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
|
return None
|
|
|
|
async def on_create_conversation(self, on_progress: Optional[OnProgressCallback] = None) -> None:
|
|
return None
|
|
|
|
async def on_open_conversation(self, on_progress: Optional[OnProgressCallback] = None) -> None:
|
|
return None
|
|
|
|
async def on_before_completion(self, context: ConversationContext) -> Optional[dict]:
|
|
return None |