Skip to content

Commit

Permalink
fix: fix chat mode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NingLu committed Oct 24, 2024
1 parent ce4ed91 commit cf479fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"agent": "Agent",
"tools_choose_and_results_generation": "Tool Calling",
"results_evaluation": "Result Evaluation",
"tool_execution": "Final Tool Result"
"tool_execution": "Final Tool Result",
"llm_direct_results_generation": "LLM Response"
}

class LAMBDA_INVOKE_MODE(enum.Enum):
Expand Down Expand Up @@ -280,7 +281,7 @@ def wrapper(state: Dict[str, Any]) -> Dict[str, Any]:
current_stream_use = state["stream"]
ws_connection_id = state["ws_connection_id"]
enable_trace = state["enable_trace"]
send_trace(f"\n\n ### {__FUNC_NAME_MAP[func.__name__]}\n\n",
send_trace(f"\n\n ### {__FUNC_NAME_MAP.get(func.__name__, func.__name__)}\n\n",
current_stream_use, ws_connection_id, enable_trace)
state['trace_infos'].append(
f"Enter: {func.__name__}, time: {time.time()}")
Expand Down

0 comments on commit cf479fb

Please sign in to comment.