Skip to content

Conversation

@23jura23
Copy link
Contributor

No description provided.

23jura23 and others added 30 commits January 14, 2026 15:23
…chats and switching chat mid-query is possible. Also fix a bug with Clean all chats leaving stale links to cache
…project detection is now CLI's responsibility
@23jura23 23jura23 changed the title [#159] Implement Streamlit Ul for Databao [#159] Changes in core for UI Feb 10, 2026
@23jura23 23jura23 marked this pull request as ready for review February 12, 2026 14:50
@23jura23 23jura23 requested a review from a team February 12, 2026 14:50
Comment on lines +35 to +42
if data_executor is None:
match executor_type:
case "react_duckdb":
data_executor = ReactDuckDBExecutor(writer=writer)
case "lighthouse":
data_executor = LighthouseExecutor(writer=writer)
case _:
raise ValueError(f"Invalid executor type: {executor_type}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should happen outside of agent function and the appropriate Executor should be passed as data_executor parameter.

output will be written to this writer instead of stdout.
"""
self._graph_recursion_limit = 50
self._writer = writer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self._writer is not used in the base class (GraphExecutor). I don't think it should be a part of it.

class LighthouseExecutor(GraphExecutor):
def __init__(self) -> None:
super().__init__()
def __init__(self, writer: Any = None) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the writer should not be stored in Executor. Thread calls execute(...) and already passes the writer. The writer is basically the way to output the result of the query

stream_plot: bool = False,
lazy_threads: bool = False,
auto_output_modality: bool = True,
writer: TextIO | None = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to store the writer in the agent. I believe it should be a part of the Thread only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants