Skip to content

Commit

Permalink
log retrieved functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed May 15, 2024
1 parent c8d3d9d commit 16a9285
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vision_agent/agent/vision_agent_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,11 @@ def run_plan(
f"""
{tabulate(tabular_data=[task], headers="keys", tablefmt="mixed_grid", maxcolwidths=_MAX_TABULATE_COL_WIDTH)}"""
)
tool_info = "\n".join(
[e["doc"] for e in tool_recommender.top_k(task["instruction"])]
)
tools = tool_recommender.top_k(task["instruction"])
tool_info = "\n".join([e["doc"] for e in tools])

if verbosity == 2:
_LOGGER.info(f"Tools retrieved: {[e['desc'] for e in tools]}")

if long_term_memory is not None:
retrieved_ltm = "\n".join(
Expand Down

0 comments on commit 16a9285

Please sign in to comment.