agentkit.node.SimpleDBNode
- class agentkit.node.SimpleDBNode(key: str, prompt: str, graph: ~agentkit.graph.Graph, query_llm: ~collections.abc.Callable, compose_prompt: ~agentkit.compose_prompt.ComposePromptDB, database: ~typing.Any, after_query: ~agentkit.after_query.BaseAfterQuery | None = None, error_msg_fn: ~collections.abc.Callable[[list, str, ~agentkit.exceptions.AfterQueryError], list] = <function error_msg_default>, verbose: bool = False, token_counter: ~collections.abc.Callable | None = None)
Class for a node in the graph that queries a database.
Each node in the graph is an instance of the SimpleDBNode class. The node is evaluated by querying the LLM with a prompt.
- db
Database object.
- Type:
Any