Skip to content

Conversation

@JadeCara
Copy link
Owner

@JadeCara JadeCara commented Jan 3, 2025

This pull request introduces a new chatbot module in Rust, including its dependencies, build configurations, and core functionalities. The most important changes are the addition of essential dependencies, the creation of a Makefile for project management, the implementation of the chatbot's main logic, and the setup of the main entry point for the application.

Dependencies and Configuration:

  • module2/chatbot/Cargo.toml: Added the necessary dependencies for the chatbot, including reqwest, tokio, serde, serde_json, and dotenv.

Build and Project Management:

  • module2/chatbot/Makefile: Created a Makefile to manage various tasks such as building, running, testing, linting, formatting, and version bumping of the project.

Core Functionality:

  • module2/chatbot/src/chatbot.rs: Implemented the main logic for the chatbot, including functions for running the chat loop, calling the API, and handling user input and AI responses.

Module Setup:

Main Entry Point:

  • module2/chatbot/src/main.rs: Set up the main function to initialize the environment, create an HTTP client, retrieve the API key, and start the chatbot loop.

@JadeCara JadeCara merged commit 82cb69b into main Jan 3, 2025
8 checks passed
@JadeCara JadeCara deleted the jade/chatbot branch January 3, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants