Josh-XT / AGiXT

AGiXT is a dynamic AI Agent Automation Platform that seamlessly orchestrates instruction management and complex task execution across diverse AI providers. Combining adaptive memory, smart features, and a versatile plugin system, AGiXT delivers efficient and comprehensive AI solutions.
https://AGiXT.com
MIT License
2.6k stars 346 forks source link

Ask the user if they want to execute the suggested chain of commands. #1183

Closed github-actions[bot] closed 3 months ago

github-actions[bot] commented 4 months ago

https://github.com/Josh-XT/AGiXT/blob/b6aa3d617605713619197f7214d939db039f9b35/agixt/Interactions.py#L839


                                            command_args=command_args,
                                        )
                                    )
                                    # TODO: Ask the user if they want to execute the suggested chain of commands.
                                    command_output = f"{command_output}\n\n**Would you like to execute the command `{command_name}` with the following parameters?**\n```json\n{json.dumps(command_args, indent=4)}\n```"
                                    # Ask the AI to make the command output more readable and relevant to the conversation and respond with that.
                            except Exception as e:
                                logging.error(
                                    f"Error: {self.agent_name} failed to execute command `{command_name}`. {e}"
github-actions[bot] commented 3 months ago

Closed in 68efa1371034ec671472090fb66b3a93cfbd72d8