Skip to content

Abhijendra/AI-Twin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot Framework

This project is a chatbot framework designed to interact with users in a conversational manner. It leverages a large language model (LLM) to generate responses and handle tool calls dynamically.

Features

  • Dynamic System Prompt: The chatbot generates a system prompt based on the provided summary and detail.
  • Conversation History: Maintains a history of messages exchanged between the user and the chatbot.
  • Tool Call Handling: Supports tool calls and processes them dynamically during the conversation.
  • LLM Integration: Uses the openai/gpt-oss-120b model for generating responses.

Code Overview

Key Methods

  1. system_prompt():

    • Constructs the system prompt using the chatbot's summary, detail, and name.
  2. chat(message: str, history: List[Dict]):

    • Handles the main chat functionality.
    • Accepts a user message and a history of previous messages.
    • Interacts with the LLM to generate responses.
    • Processes tool calls if required.

Workflow

  1. The chat method initializes the conversation with a system prompt.
  2. It appends the user's message and the conversation history.
  3. The LLM generates a response, which may include tool calls.
  4. Tool calls are handled dynamically, and the conversation continues until a final response is generated.

Installation

  1. Clone the repository:
    git clone <repository-url>
    cd <repository-folder>

About

An AI twin chatbot which represents professional you

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors