-
Notifications
You must be signed in to change notification settings - Fork 3
[#159] Changes in core for UI #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…s pages, dynamic app status
…chats and switching chat mid-query is possible. Also fix a bug with Clean all chats leaving stale links to cache
…rease version 0.1.2->0.1.4dev
…project detection is now CLI's responsibility
| 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}") |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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.
No description provided.