This commit is contained in:
@@ -22,13 +22,13 @@ def dictionary_tool(query: str, action: Optional[str] = None) -> str:
|
||||
格式化的结果文本
|
||||
"""
|
||||
try:
|
||||
from app.subgraphs.dictionary import (
|
||||
from backend.app.subgraphs.dictionary import (
|
||||
DictionaryState,
|
||||
DictionaryAction,
|
||||
parse_intent,
|
||||
format_result
|
||||
)
|
||||
from app.subgraphs.dictionary.nodes import (
|
||||
from backend.app.subgraphs.dictionary.nodes import (
|
||||
query_word, translate_text, extract_terms, get_daily_word
|
||||
)
|
||||
|
||||
@@ -87,13 +87,13 @@ def news_analysis_tool(query: str, action: Optional[str] = None) -> str:
|
||||
格式化的结果文本
|
||||
"""
|
||||
try:
|
||||
from app.subgraphs.news_analysis import (
|
||||
from backend.app.subgraphs.news_analysis import (
|
||||
NewsAnalysisState,
|
||||
NewsAction,
|
||||
parse_intent,
|
||||
format_result
|
||||
)
|
||||
from app.subgraphs.news_analysis.nodes import (
|
||||
from backend.app.subgraphs.news_analysis.nodes import (
|
||||
query_news, analyze_url, extract_keywords, generate_report
|
||||
)
|
||||
|
||||
@@ -150,13 +150,13 @@ def contact_tool(query: str, action: Optional[str] = None) -> str:
|
||||
格式化的结果文本
|
||||
"""
|
||||
try:
|
||||
from app.subgraphs.contact import (
|
||||
from backend.app.subgraphs.contact import (
|
||||
ContactState,
|
||||
ContactAction,
|
||||
parse_intent,
|
||||
format_result
|
||||
)
|
||||
from app.subgraphs.contact.nodes import (
|
||||
from backend.app.subgraphs.contact.nodes import (
|
||||
query_contact, add_contact, list_contacts
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user