Skip to content

Commit

Permalink
fix: safe convert params; formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaphoenix committed Nov 26, 2024
1 parent f8c0c8a commit eaf9394
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/dfcx_scrapi/tools/evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,16 @@ def run_detect_intent_queries(self, df: pd.DataFrame) -> pd.DataFrame:
if row["action_type"] != "User Utterance":
continue

if row["action_type"] != "User Utterance":
continue

session_parameters = None

if "session_parameters" in row:
session_parameters = row["session_parameters"]
session_parameters = self.str_to_dict(row["session_parameters"])

res = self.s.detect_intent(
self.agent_id, self.session_id, row["action_input"], parameters = session_parameters
agent_id=self.agent_id,
session_id=self.session_id,
text=row["action_input"],
parameters=session_parameters
)

# Add data to the existing row
Expand Down

0 comments on commit eaf9394

Please sign in to comment.