Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion assistant_core/nodes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import abc

from langchain_core.runnables import RunnableConfig
from langgraph.runtime import Runtime


class BaseNode(abc.ABC):
Expand All @@ -16,6 +17,8 @@ def __init__(self, name: str = "", *args, **kwargs):
self.name = name

@abc.abstractmethod
async def __call__(self, state: dict, config: RunnableConfig) -> dict:
async def __call__(
self, state: dict, config: RunnableConfig, runtime: Runtime
) -> dict:
"""Executes the node."""
raise NotImplementedError("Subclasses must implement this method.")
Loading