codeforpdx / codeforpdx/tenantfirstaid

output ToolMessage content blocks from generate_streaming_response()

Open
#274 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backend enhancement
Dominant language
Python
Stars
13
Forks
21
Avg merge
6d 7h
Merged PRs (30d)
3

Description

The ToolMessage blocks are logged but not returned in the output stream ...

https://github.com/codeforpdx/tenantfirstaid/blob/df26b7dc0085250a623b6e0a5be21ecc97076f1f/backend/tenantfirstaid/langchain_chat_manager.py#L207-L216

We don't want to send these to the frontend but generate_streaming_response() is also used in the LangSmith evaluation runs it would be useful to get the tool call and the tool response in the experiment outputs to get a better picture to debug where a problem might be.

Either generate_streaming_response() needs to return more blocks or run_langsmith_evalutions.py needs to call a different (helper) function.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with backend/tenantfirstaid/langchain_chat_manager.py lines 207-216 and compare generate_streaming_response() with run_langsmith_evalutions.py. Trace how ToolMessage blocks are logged and which blocks reach the frontend. Done means LangSmith evaluation outputs include tool calls and responses without sending those blocks to the frontend.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.