{"id":17220784,"url":"https://github.com/thedayisntgray/react_ai","last_synced_at":"2026-03-01T08:34:20.137Z","repository":{"id":209246081,"uuid":"723157184","full_name":"thedayisntgray/react_ai","owner":"thedayisntgray","description":"ReAct is an llm prompting pattern that enables an LLM to take actions such as searching the web or using a calculator.","archived":false,"fork":false,"pushed_at":"2024-01-09T04:33:38.000Z","size":17,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T20:04:05.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thedayisntgray.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-24T20:57:58.000Z","updated_at":"2024-05-12T09:50:09.000Z","dependencies_parsed_at":"2024-01-09T06:40:41.606Z","dependency_job_id":null,"html_url":"https://github.com/thedayisntgray/react_ai","commit_stats":null,"previous_names":["thedayisntgray/react_ai"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thedayisntgray/react_ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedayisntgray%2Freact_ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedayisntgray%2Freact_ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedayisntgray%2Freact_ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedayisntgray%2Freact_ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedayisntgray","download_url":"https://codeload.github.com/thedayisntgray/react_ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedayisntgray%2Freact_ai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29965406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T03:53:10.610Z","updated_at":"2026-03-01T08:34:20.120Z","avatar_url":"https://github.com/thedayisntgray.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReactAi\n\nWelcome to ```react_ai``` a gemified version of [my attempt to recreate the ReAct pattern in Ruby](https://github.com/thedayisntgray/Ruby-ReAct-Agent) with added features.\n\n## Purpose\n\nThe [ReAct pattern](https://arxiv.org/abs/2210.03629) is a technique used to circumvent the limitation LLMs have of only being able to respond past the date they were trained. We do this by prompting our LLM to use tools that we can define for it. Another advantage of using tools is that we can reduce hallucinations and therefore improve accuracy of LLM responses.\n\nIf you enjoy this gem you should check out [langchain.rb](https://github.com/andreibondarev/langchainrb) which has a more fully featured implementation of the ReAct pattern with more tools to play with!\n\n## Features\n\n### Tools\n- Calculator\n- Wikipedia\n\n### CLI \n- A simple CLI tool to test prompts\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add react_ai\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install react_ai\n\nCreate a ```.env``` file in the root directory and add your open-ai key and your're ready to go!🔥\n\n```\nOPEN_AI_KEY='your open ai key'\n```\n\n## Usage\n\nYou can use this gem via the commmand line after it is installed by typing:\n\n```./exe/react_ai \"Some prompt for our LLM!\"```\n\nHere's an example of what a user prompt and subsequent response might look like:\n\n\nhttps://github.com/thedayisntgray/react_ai/assets/4859128/bbc6cba8-914b-4d6a-9a45-77e819acaec2\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/thedayisntgray/react_ai.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedayisntgray%2Freact_ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedayisntgray%2Freact_ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedayisntgray%2Freact_ai/lists"}