Skip to content

Conversation

@nitpicker55555
Copy link
Collaborator

@nitpicker55555 nitpicker55555 commented May 20, 2025

Description

This usecase demonstrates how to use the EmbodiedAgent framework to automate a complete Excel → SQL → Excel workflow, powered by language agents and integrated interpreters.
Fixes #2351

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have read the CONTRIBUTION guide (required)
  • I have linked this PR to an issue using the Development section on the right sidebar or by adding Fixes #issue-number in the PR description (required)
  • I have checked if any dependencies need to be added or updated in pyproject.toml and uv lock
  • I have updated the tests accordingly (required for a bug fix or a new feature)
  • I have updated the documentation if needed:
  • I have added examples if this is a new feature

@nitpicker55555 nitpicker55555 changed the title Usecase: sql to excel feat: embodied agent with database interpreter May 20, 2025
@nitpicker55555 nitpicker55555 changed the title feat: embodied agent with database interpreter usecase: report generation with camel framework using excel templates May 20, 2025
pass # No-op


def DatabaseInterpreter(db_config: Dict[str, Any]) -> BaseInterpreter:
Copy link
Member

Choose a reason for hiding this comment

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

Should we rename it to make it more clear?

Suggested change
def DatabaseInterpreter(db_config: Dict[str, Any]) -> BaseInterpreter:
def DatabaseQueryLanguageInterpreter(db_config: Dict[str, Any]) -> BaseInterpreter:

Comment on lines +47 to +55
conn = sqlite3.connect(self.db_path)
cursor = conn.cursor()
cursor.execute(query)
rows = cursor.fetchall()
column_names = [desc[0] for desc in
cursor.description] if cursor.description else []

conn.commit()
conn.close()
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to connect and close for running each query?

@lightaime
Copy link
Member

Thanks @nitpicker55555. Thanks for building the amazing use cases with EmbodiedAgent. However, the EmbodiedAgent is not stable and may need some refactoring in the near future. Should we showcase it with ChatAgent and refactor camel/interpreters/db_interpreter.py as a SQLDatabaseToolkit?

@nitpicker55555
Copy link
Collaborator Author

Thanks @nitpicker55555. Thanks for building the amazing use cases with EmbodiedAgent. However, the EmbodiedAgent is not stable and may need some refactoring in the near future. Should we showcase it with ChatAgent and refactor camel/interpreters/db_interpreter.py as a SQLDatabaseToolkit?

Cool~ Will do that

@Wendong-Fan Wendong-Fan added the Waiting for Update PR has been reviewed, need to be updated based on review comment label Jun 1, 2025
@Wendong-Fan Wendong-Fan added this to the Sprint 30 milestone Jun 1, 2025
@zjrwtx
Copy link
Collaborator

zjrwtx commented Jun 6, 2025

thanks @nitpicker55555 ,A warm reminder:Does anything block you?please lets us know if you need any help

@waleedalzarooni
Copy link
Collaborator

Hey @nitpicker55555,

Quick reminder of this PR

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

Labels

Waiting for Update PR has been reviewed, need to be updated based on review comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[Question] Automating Report Generation with Camel Framework Using Natural Language Rules and Excel Templates

5 participants