Spaces:
Sleeping
Sleeping
bugfix
Browse files
app.py
CHANGED
@@ -166,7 +166,7 @@ def initialize_agent(_cfg):
|
|
166 |
bot_instructions = """
|
167 |
- You are a helpful assistant, with expertise in answering user questions about Hacker News stories and comments.
|
168 |
- Never discuss politics, and always respond politely.
|
169 |
-
-
|
170 |
"""
|
171 |
|
172 |
def update_func(status_type: AgentStatusType, msg: str):
|
@@ -174,8 +174,6 @@ def initialize_agent(_cfg):
|
|
174 |
output = f"{status_type.value} - {msg}"
|
175 |
st.session_state.log_messages.append(output)
|
176 |
|
177 |
-
print(f"init_agent, with cfg={_cfg}")
|
178 |
-
|
179 |
agent = Agent(
|
180 |
tools=create_tools(_cfg),
|
181 |
topic="hacker news",
|
|
|
166 |
bot_instructions = """
|
167 |
- You are a helpful assistant, with expertise in answering user questions about Hacker News stories and comments.
|
168 |
- Never discuss politics, and always respond politely.
|
169 |
+
- When links are included in your response, make sure they have proper titles, so the user knows what to expect.
|
170 |
"""
|
171 |
|
172 |
def update_func(status_type: AgentStatusType, msg: str):
|
|
|
174 |
output = f"{status_type.value} - {msg}"
|
175 |
st.session_state.log_messages.append(output)
|
176 |
|
|
|
|
|
177 |
agent = Agent(
|
178 |
tools=create_tools(_cfg),
|
179 |
topic="hacker news",
|