i-am-bee / bee-agent-framework

The framework for building scalable agentic applications.
https://i-am-bee.github.io/bee-agent-framework/
Apache License 2.0
1.09k stars 106 forks source link

[RFC] Data Analysis Toolkit #182

Open tonxxd opened 3 days ago

tonxxd commented 3 days ago

Is your feature request related to a problem? Please describe.
This feature proposal introduces a toolkit for SQL and data analysis, by enhancing current SQL tool and introducing few other concepts

Describe the solution you'd like

The SQL Toolkit will include:

The Data Analysis Toolkit will include:


Describe alternatives you've considered
Adding tools individually, which lacks the flexibility and easy of use of a unified toolkit. Creating a new Specialized Agent without the concept of toolkit.


Additional context
Part of the FlowPilot team's contribution to Bee.
Initial draft PR in progress.

Example


import { DataAnalysisToolkit } from "bee-agent-framework/toolkits/dataAnalysis";

const toolkit = new DataAnalysisToolkit({
   ...optional tools options
})

const agent = new BeeAgent({
  llm,
  memory: new UnconstrainedMemory(),
  templates: {
    system: BeeSystemPrompt.fork((old) => ({
      ...old,
      template: toolkit.getPrompt("system")
    })),
    thought: BeeThoughtPrompt.fork((old) => ({
      ...old,
      template: toolkit.getPrompt("thought")
    })),
  },
  tools: [
    new DuckDuckGoSearchTool({
      maxResults: 10,
      search: {
        safeSearch: DuckDuckGoSearchToolSearchType.STRICT,
      },
    }),
    ...toolkit.getTools()
  ],
});
tonxxd commented 1 day ago

It seems Claude uses javascript to analyze and render charts, it might be less powerful but easier to integrate with bee builder https://www.anthropic.com/news/analysis-tool

Screenshot 2024-11-21 at 10 42 27