mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 03:50:04 +00:00
refactor: implement ai_prompter library
This commit is contained in:
parent
858b5e0d6e
commit
2afbd36cb4
7 changed files with 21 additions and 122 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import sqlite3
|
||||
from typing import Annotated, Optional
|
||||
|
||||
from ai_prompter import Prompter
|
||||
from langchain_core.messages import SystemMessage
|
||||
from langchain_core.runnables import (
|
||||
RunnableConfig,
|
||||
|
|
@ -13,7 +14,6 @@ from typing_extensions import TypedDict
|
|||
from open_notebook.config import LANGGRAPH_CHECKPOINT_FILE
|
||||
from open_notebook.domain.notebook import Notebook
|
||||
from open_notebook.graphs.utils import provision_langchain_model
|
||||
from open_notebook.prompter import Prompter
|
||||
|
||||
|
||||
class ThreadState(TypedDict):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue