Skip to content

Instantly share code, notes, and snippets.

@kaigouthro
Last active October 5, 2024 06:08
Show Gist options
  • Save kaigouthro/4a6e32d4ca21d33eae7a0d64eeb92d5f to your computer and use it in GitHub Desktop.
Save kaigouthro/4a6e32d4ca21d33eae7a0d64eeb92d5f to your computer and use it in GitHub Desktop.
Test Basis for expanding.. The way forward to after AGI starts with a goat path. AI should be this easy to talk to itself... go crazy making it better

Project Documentation

Overview

This document provides an overview and detailed explanation of the codebase, including its primary functions, settings management, and interaction with the AI model.

Code Structure

Main Functions

create_openai_fn_runnable

  • Purpose: Describe the primary purpose of this function.

  • Inputs: List and describe the inputs.

  • Outputs: List and describe the outputs.

  • Key Operations: Briefly outline the key operations performed by this function.

create_prompt

  • Purpose: Explain what this function is designed to achieve.

  • Inputs: Describe the inputs it requires.

  • Outputs: Describe the outputs it generates.

  • Key Operations: Summarize the main operations within this function.

send_prompt

  • Purpose: Detail the role of this function in the code.

  • Inputs: Specify the inputs it takes.

  • Outputs: Specify the outputs it produces.

  • Key Operations: Highlight the critical operations it performs.

Settings Management

System Settings

  • Description: Explain what system settings are and their role in the code.

  • Modification: Describe how system settings can be altered.

Message Settings

  • Description: Explain what message settings are and their role in the code.

  • Modification: Describe how message settings can be altered.

Function Management

  • Storage: Explain how functions are stored in the system.

  • Execution: Describe the process of executing a function and the expected output.

AI Interaction

ChatOpenAI Model

  • Role: Describe the role of the ChatOpenAI model in the code.

  • Functionality: Explain how it processes and generates responses.

JSON Format for Requests

  • Description: Provide an overview of the JSON format used for requesting changes to settings.

  • Examples: Include examples of JSON strings for different types of requests.

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment