Skip to content

docs: Add FAQ section for common questions#1446

Open
meichuanyi wants to merge 1 commit into
i-am-bee:mainfrom
meichuanyi:docs/add-faq-section
Open

docs: Add FAQ section for common questions#1446
meichuanyi wants to merge 1 commit into
i-am-bee:mainfrom
meichuanyi:docs/add-faq-section

Conversation

@meichuanyi

Copy link
Copy Markdown

This PR adds a FAQ section to the README, covering common questions about:

  • What is BeeAI Framework and comparison with LangChain/CrewAI
  • Installation for Python and TypeScript
  • LLM provider support and local models with Ollama
  • Core concepts: Workflows, Tools, Requirement Agent
  • MCP and A2A protocol support
  • Template starters and getting help

Checklist

  • Documentation improvement
  • No code changes
  • Tested formatting in local preview

@meichuanyi
meichuanyi requested a review from a team as a code owner May 11, 2026 06:24
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 11, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 11, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds a comprehensive FAQ section to the README.md, covering installation, comparisons, and core concepts of the BeeAI framework. A review comment identified that the custom tool implementation example was incorrect and provided actionable code suggestions for both decorator-based and class-based approaches to ensure framework compatibility.

Comment thread README.md
Comment on lines +225 to +232
Create a custom Tool by extending the base Tool class:
```python
from beeai_framework.tools import Tool
class MyTool(Tool):
async def run(self, input_data):
# Your logic here
return result
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The example provided for creating a custom tool is incorrect and would not function if implemented as shown. In the BeeAI Framework, the Tool class is an abstract base class that requires defining name, description, and input_schema as properties. Furthermore, the method to override for the tool's logic is _run (which receives input, options, and context), not run. Overriding run directly bypasses the framework's validation and execution logic.

For an FAQ, it is recommended to showcase the @tool decorator approach instead, as it is much more concise and handles schema generation automatically.

Recommended Example (Decorator):

from beeai_framework.tools import tool

@tool
def my_tool(input_data: str) -> str:
    """Description of my tool"""
    # Your logic here
    return "result"

Corrected Class-based Example:

from beeai_framework.tools import Tool
from pydantic import BaseModel

class MyInput(BaseModel):
    input_data: str

class MyTool(Tool):
    name = "my_tool"
    description = "Description of my tool"
    input_schema = MyInput

    async def _run(self, input, options, context):
        return f"Processed {input.input_data}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you address this comment please? @meichuanyi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Friendly ping @meichuanyi — this one is just waiting on the custom-tool example fix noted above (the Tool subclass example as written wouldn't run). Also, DCO is currently failing, so the commits will need a Signed-off-by line. Happy to help if anything is unclear!

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

Labels

documentation Improvements or additions to documentation size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants