Spaces:
Sleeping
Sleeping
Commit
·
65f8bda
1
Parent(s):
34a7cf2
updates to try to fix
Browse files
app.py
CHANGED
@@ -149,25 +149,23 @@ def build_agent(session_id: str, message: str, kbs:str) -> Agent:
|
|
149 |
),
|
150 |
Rule(value="Only perform one task at a time."),
|
151 |
Rule(
|
152 |
-
value="Do not perform the query unless the user has
|
153 |
),
|
154 |
Rule(
|
155 |
value="Only perform the query as one string argument."
|
156 |
),
|
157 |
-
Rule(
|
158 |
-
value="If you reformulate the query, then you must ask the user if they are 'Done' again."
|
159 |
-
),
|
160 |
Rule(
|
161 |
value="If the user says they want to start over, then you must delete the conversation memory file."
|
162 |
),
|
|
|
|
|
|
|
163 |
],
|
164 |
)
|
165 |
|
166 |
query_client = StructureRunTool(
|
167 |
name="QueryResumeSearcher",
|
168 |
-
description=f"""Use it to search for a candidate with the query.
|
169 |
-
Add this as another argument after the input: {kbs}
|
170 |
-
""",
|
171 |
driver=GriptapeCloudStructureRunDriver(
|
172 |
structure_id=os.getenv("GT_STRUCTURE_ID"),
|
173 |
api_key=os.getenv("GT_CLOUD_API_KEY"),
|
|
|
149 |
),
|
150 |
Rule(value="Only perform one task at a time."),
|
151 |
Rule(
|
152 |
+
value="Do not perform the query unless the user has confirmed they are done with formulating."
|
153 |
),
|
154 |
Rule(
|
155 |
value="Only perform the query as one string argument."
|
156 |
),
|
|
|
|
|
|
|
157 |
Rule(
|
158 |
value="If the user says they want to start over, then you must delete the conversation memory file."
|
159 |
),
|
160 |
+
Rule(
|
161 |
+
value="Do not ever search conversation memory for a formulated query instead of querying. Query every time."
|
162 |
+
)
|
163 |
],
|
164 |
)
|
165 |
|
166 |
query_client = StructureRunTool(
|
167 |
name="QueryResumeSearcher",
|
168 |
+
description=f"""Use it to search for a candidate with the query. Add this exactly without any additional formatting as args[2]:{kbs}. Do not add any other arguments.""",
|
|
|
|
|
169 |
driver=GriptapeCloudStructureRunDriver(
|
170 |
structure_id=os.getenv("GT_STRUCTURE_ID"),
|
171 |
api_key=os.getenv("GT_CLOUD_API_KEY"),
|