Enhance agent bio display and tool result presentation in Step4Report component
- Updated the AgentInterview class to display the full agent bio, truncating only if it exceeds 1000 characters for better readability. - Enhanced the Step4Report component to include structured display for tool results, allowing users to toggle between raw and structured views for various tools, improving user experience and clarity. - Introduced new components for parsing and displaying results from different tools, including InsightForge, PanoramaSearch, InterviewAgents, and QuickSearch, providing a comprehensive view of the data.
This commit is contained in:
parent
851b12dfd9
commit
fde79721e8
2 changed files with 1103 additions and 6 deletions
|
|
@ -307,7 +307,11 @@ class AgentInterview:
|
||||||
|
|
||||||
def to_text(self) -> str:
|
def to_text(self) -> str:
|
||||||
text = f"**{self.agent_name}** ({self.agent_role})\n"
|
text = f"**{self.agent_name}** ({self.agent_role})\n"
|
||||||
text += f"_简介: {self.agent_bio[:100]}..._\n\n"
|
# 显示完整的agent_bio,只在超过1000字符时截断
|
||||||
|
if len(self.agent_bio) > 1000:
|
||||||
|
text += f"_简介: {self.agent_bio[:1000]}..._\n\n"
|
||||||
|
else:
|
||||||
|
text += f"_简介: {self.agent_bio}_\n\n"
|
||||||
text += f"**Q:** {self.question}\n\n"
|
text += f"**Q:** {self.question}\n\n"
|
||||||
text += f"**A:** {self.response}\n"
|
text += f"**A:** {self.response}\n"
|
||||||
if self.key_quotes:
|
if self.key_quotes:
|
||||||
|
|
@ -1409,7 +1413,7 @@ class ZepToolsService:
|
||||||
interview = AgentInterview(
|
interview = AgentInterview(
|
||||||
agent_name=agent_name,
|
agent_name=agent_name,
|
||||||
agent_role=agent_role,
|
agent_role=agent_role,
|
||||||
agent_bio=agent_bio[:150],
|
agent_bio=agent_bio[:1000], # 扩大bio长度限制
|
||||||
question=combined_prompt,
|
question=combined_prompt,
|
||||||
response=response_text,
|
response=response_text,
|
||||||
key_quotes=key_quotes[:5]
|
key_quotes=key_quotes[:5]
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue