mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 17:52:38 +02:00
Clear spans after task completion and pass span id on tool output.
This commit is contained in:
parent
2c1b219c6c
commit
3ed09bdd90
3 changed files with 15 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ class ToolCompletionEmissionContext:
|
|||
stream_result: Any
|
||||
langgraph_config: dict[str, Any]
|
||||
staged_workspace_file_path: str | None
|
||||
tool_metadata: dict[str, Any] | None = None
|
||||
|
||||
def emit_tool_output_card(self, payload: Any) -> str:
|
||||
return emit_tool_output_available_frame(
|
||||
|
|
@ -31,4 +32,5 @@ class ToolCompletionEmissionContext:
|
|||
langchain_id_holder=self.langchain_tool_call_id_holder,
|
||||
call_id=self.tool_call_id,
|
||||
output=payload,
|
||||
tool_metadata=self.tool_metadata,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue