fix(agent): simplify state API and update consumers fixes #2633
This commit is contained in:
@@ -141,7 +141,7 @@ export class ChatPanel extends LitElement {
|
||||
const additionalTools =
|
||||
config?.toolsFactory?.(agent, this.agentInterface, this.artifactsPanel, runtimeProvidersFactory) || [];
|
||||
const tools = [this.artifactsPanel.tool, ...additionalTools];
|
||||
this.agent.setTools(tools);
|
||||
this.agent.state.tools = tools;
|
||||
|
||||
// Reconstruct artifacts from existing messages
|
||||
// Temporarily disable the onArtifactsChange callback to prevent auto-opening on load
|
||||
|
||||
Reference in New Issue
Block a user