AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Calculate [expression] command / plugin

Open Boostrix opened this issue 2 years ago • 4 comments

Duplicates

  • [X] I have searched the existing issues

Summary 💡

For the time being, any time an agent needs to compute a calculation it needs to resort to CLI tools (which may be disabled) or to writing/executing custom Python code.

Given that calculations are such a common/useful thing, it would probably make sense to come up with a dedicated plugin that adds a "do_calculation" command, based on handing that to a Python library like SymPy/

Examples 🌈

No response

Motivation 🔦

get rid of having to write custom python code or having to invoke platform specific CLI tools that may not be accessible for some users.

Boostrix avatar May 04 '23 07:05 Boostrix

Plugin candidate, once the dust settles with #3652 Related: https://github.com/Significant-Gravitas/Auto-GPT-Plugins/pull/86

Boostrix avatar May 05 '23 09:05 Boostrix

Not sure about this one, but I do think it brings up a good point about Inversion of Control. The commands written for this repository should be loosely coupled, so they can be hotswapped with other implementations.

anonhostpi avatar May 05 '23 17:05 anonhostpi

on any *nix platform, there is zero problem obviously, because you inevitably have got access to stuff like bc and friends. But this being a cross-platform project ...

Boostrix avatar May 05 '23 17:05 Boostrix

Added this to discussion #3856

anonhostpi avatar May 05 '23 18:05 anonhostpi

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Sep 06 '23 20:09 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Sep 17 '23 01:09 github-actions[bot]