Path: /history/team/team-history
stock_team = Team(
name="Stock Team",
members=[stock_analyst_agent.agent, stock_action_agent.agent],
mode=TeamMode.route,
model=chat_model.dash_model(enable_thinking=False),
description="You are a professional stock analysis assistant,Delegate to the appropriate agent based on the request.",
debug_mode=True,
debug_level=2,
db=chat_model.pg_db,
#直接下发任务给成员,不自定义task内容
determine_input_for_members=False,
# 直接返回成员的响应
respond_directly=True,
# show_members_responses=True,
add_datetime_to_context=True,
# add_location_to_context=False,
# add_history_to_context=True,
# enable_agentic_memory=True,
# update_memory_on_run=True,
# num_history_runs=10,
add_team_history_to_members=True, # 跨 run 历史共享
# share_member_interactions=True, # 单次 run 内成员互相可见
# read_chat_history=True,
# search_past_sessions=True,
)
run1:茅台今日行情
ai1:
run2:加入到科技股分组
ai2:
run3: 股价大于1501时提醒我
ai3: 为了为您创建股价大于1501的提醒任务,我需要知道您希望监控哪只股票。请提供股票代码(例如:600519)。
The response from ai3 was not based on the context
Path: /history/team/team-history
run1:茅台今日行情
ai1:
run2:加入到科技股分组
ai2:
run3: 股价大于1501时提醒我
ai3: 为了为您创建股价大于1501的提醒任务,我需要知道您希望监控哪只股票。请提供股票代码(例如:600519)。
The response from ai3 was not based on the context