Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m37s
- 完善通讯录子图nodes.py:优化format_result的展示效果 - 创建通讯录子图API调用工具:api_client.py - 更新通讯录子图__init__.py,导出所有模块和API客户端 - 所有功能已通过测试验证
53 lines
892 B
Python
53 lines
892 B
Python
"""
|
|
通讯录子图 - 完善版
|
|
Contact Subgraph Module - Complete
|
|
"""
|
|
|
|
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
|
|
)
|
|
from .api_client import contact_api, ContactAPIClient
|
|
|
|
__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",
|
|
|
|
# API
|
|
"contact_api",
|
|
"ContactAPIClient"
|
|
]
|