Package: bondai
Build highly capable Single and Multi-Agent Systems.BondAI HomepageCheckout the BondAI Homepage (https://bondai.dev) for in depth documentation, examples and API specification.Getting StartedThere are 3 ways to use BondAI:🛠️Command Line Interface (CLI)- This is the easiest way to get up and running fast. Run BondAI on your command line with a pre-configured set of tools.🐋Docker- Running BondAI in a Docker container is recommended if you plan on using tools that run code or directly access your shell.🏗️Start Coding with BondAI- Integrate BondAI into your own codebase and start building your own agents.🚀 InstallationInstalling BondAI is easy:pipinstallbondai🛠️ Command Line Interface (CLI)Once you've installed BondAI usingpip install bondaithe CLI will be available as an executable accessible simply by runningbondaiin your shell.Learn more about all of the tools and options available through the CLI.Before runningbondaiyou will need to set the OPENAI_API_KEY environment variable.exportOPENAI_API_KEY=sk-XXXXXXXXXXOnce the environment variable has been set you can runbondaito start the CLI.LoadingBondAI...
******************ENTERINGCHAT******************
YouareenteringachatwithBondAI...
Youcanexitanytimebytyping'exit'.

Hello!I'm BondAI, your friendly and helpful assistant. I'mheretoassistyouwithanytasksorquestionsyoumighthave.HowcanIassistyoutoday?

Iwantyoutowriteastoryaboutunicornsandsaveittoafilenamedunicorns.md.
Usingtoolfile_write:Writingastoryaboutunicornsandsavingittoafilenamedunicorns.md
Usingtoolfinal_answer...

Astoryaboutunicornshasbeensuccessfullywrittenandsavedtoafilenamedunicorns.md.Thestoryissetinanenchantedforestanddescribesthemagicalandmajesticnatureofunicorns,theirdailyroutines,andtheirharmoniousrelationshipwithothercreaturesintheforest.🐋 DockerBondAI Docker images are available onDockerHub here. If you intend to use tools that run arbitrary code (PythonREPLTool) or access your shell (ShellTool) it is highly recommended that you run BondAI in a Docker container as these tools can damage your machine.Before running the BondAI Docker container it is recommended that you create a directory named 'agent-volume' and mount it as a volume on the container. This will be used as the Agent's working directory and allows you to easily share files with the Agent.mkdiragent-volume
dockerpullkrohling/bondai:latest
dockerrun-it--rm\-v./agent-volume:/agent-volume\-w/agent-volume\OPENAI_API_KEY=sk-XXXXXXXXXX\bondai:latestbondai🔥 Start Coding with BondAIBondAI has a straightforward API for creating powerful AI Agents. Check out ourexamplesfor ideas on how to get started.  Remember to set yourOPENAI_API_KEYenvironment variable before running your BondAI Agent.frombondai.agentsimportAgentfrombondai.tools.searchimportDuckDuckGoSearchToolfrombondai.tools.websiteimportWebsiteQueryToolfrombondai.tools.fileimportFileWriteTooltask="""I want you to research the usage of Metformin as a drug to treat aging and aging related illness.You should only use reputable information sources, ideally peer reviewed scientific studies.I want you to summarize your findings in a document named metformin.md and includes links to reference and resources you used to find the information.Additionally, the last section of your document you should provide a recommendation for a 43 year old male, in good health and who regularly exercises as to whether he would benefit from taking Metformin.You should explain your recommendation and justify it with sources.Finally, you should highlight potential risks and tradeoffs from taking the medication."""Agent(tools=[DuckDuckGoSearchTool(),WebsiteQueryTool(),FileWriteTool()]).run(task)BondAI IntegrationsBondAI comes out of the box with a powerful set of integrations.OpenAIBondAI supports any combination of OpenAI models and services including GPT-4, GPT-3.5, Dalle-E 3, and Embeddings.Microsoft AzureBondAI fully supports connectivity to GPT-N, Dalle-E and Embedding APIs throughMicrosoft's Azure OpenAI services.Google SearchAllows BondAI to search the internet.Requires a Google Search API Key and CSE IDDuckDuckGoAllows BondAI to search the internet. No API keys required.Alpaca MarketsAllows BondAI to buy and sell stocks and crypto.Requires an Alpaca Markets account.PostgreSQLBondAI can automatically extract the schema from a Postgres DB and process natural language queries.Bland AIAllows BondAI to make phone calls and process/retrieve call transcripts.Requires a Bland.ai account.GmailAllows BondAI to search and read emails.