48 lines
757 B
Python
48 lines
757 B
Python
|
|
"""
|
||
|
|
通讯录子图
|
||
|
|
Contact Subgraph Module
|
||
|
|
"""
|
||
|
|
|
||
|
|
from .state import (
|
||
|
|
ContactState,
|
||
|
|
Contact,
|
||
|
|
Email,
|
||
|
|
ContactAction
|
||
|
|
)
|
||
|
|
from .graph import build_contact_subgraph
|
||
|
|
from .nodes import (
|
||
|
|
parse_intent,
|
||
|
|
list_contacts,
|
||
|
|
add_contact,
|
||
|
|
list_emails,
|
||
|
|
generate_email_draft,
|
||
|
|
human_review,
|
||
|
|
send_email,
|
||
|
|
sniff_contacts,
|
||
|
|
format_result,
|
||
|
|
should_continue
|
||
|
|
)
|
||
|
|
|
||
|
|
__all__ = [
|
||
|
|
# State
|
||
|
|
"ContactState",
|
||
|
|
"Contact",
|
||
|
|
"Email",
|
||
|
|
"ContactAction",
|
||
|
|
|
||
|
|
# Graph
|
||
|
|
"build_contact_subgraph",
|
||
|
|
|
||
|
|
# Nodes
|
||
|
|
"parse_intent",
|
||
|
|
"list_contacts",
|
||
|
|
"add_contact",
|
||
|
|
"list_emails",
|
||
|
|
"generate_email_draft",
|
||
|
|
"human_review",
|
||
|
|
"send_email",
|
||
|
|
"sniff_contacts",
|
||
|
|
"format_result",
|
||
|
|
"should_continue"
|
||
|
|
]
|