23 lines
667 B
Python
23 lines
667 B
Python
from __future__ import annotations
|
|
from typing import Any, Optional
|
|
from agentkit.context import ConversationContext
|
|
from agentkit.types import LLMFunctionInfo, PluginConfigParam
|
|
|
|
|
|
class AgentKitLLMFunction:
|
|
CONFIG: list[PluginConfigParam] = []
|
|
|
|
def __init__(self, props: dict, **kwargs):
|
|
pass
|
|
|
|
|
|
async def get_llm_function_info() -> Optional[LLMFunctionInfo]:
|
|
"""
|
|
Get function information for the LLM function.
|
|
return None to disable the function for this context.
|
|
"""
|
|
return None
|
|
|
|
|
|
async def run(self, context: ConversationContext, params: Any) -> str:
|
|
return "Function not implemented" |