# llama.cpp-phi3-ai-agent-demo **Repository Path**: az13js/llama.cpp-phi3-ai-agent-demo ## Basic Information - **Project Name**: llama.cpp-phi3-ai-agent-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-27 - **Last Updated**: 2024-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # README.md ## Introduction This repository contains a PHP script, `main.php`, which uses the `runModel` function to execute a command-line model with user and system prompts. The `runModel` function is imported from `function.php` file. The purpose of this script is to demonstrate the usage of `runModel` function with an example that involves a discussion on logical reasoning and problem analysis. ## Usage To execute the `main.php` script, use the following command: ```bash php main.php ``` ## Prerequisites Before executing the script, make sure to have: 1. PHP installed in your environment. 2. Git installed to clone and contribute to the repository. 3. The `function.php` file containing the `runModel` function. ## `function.php` File This file should contain the following `runModel` function, see `function.md`. ## `main.php` File The `main.php` file is responsible for importing the `runModel` function and executing it with the provided prompts. The `runModel` function accepts two parameters: `userPrompt` and `systemPrompt`. In the provided example, the `userPrompt` asks "What is Agent?" and the `systemPrompt` prompts the user to think about logical reasoning and problem analysis. ## `file_manager.php` File The `file_manager.php` file in the repository is a command-line interface (CLI) utility designed to interpret user prompts and execute corresponding Linux commands. It processes user input, identifies the desired action, and provides instructions or executes the appropriate Linux command using the `shell_exec` function. The file includes a default system prompt to guide users in listing files, viewing file content, modifying file content, and deleting files, all while adhering to the specified format for input prompts.