### Setup Environment Variables Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Copies the example environment file and highlights the required GOOGLE_API_KEY variable for agent functionality. ```Shell cp .env.example .env Update the following required environment variables in .env: * GOOGLE_API_KEY ``` -------------------------------- ### Example Test Feedback JSON Source: https://github.com/moonsong-labs/ai-nexus/blob/main/src/tester/test-agent-system-prompt.md Provides a sample JSON object demonstrating the structure defined by the schema, showing feedback for multiple tests with varying approval statuses and rejection reasons. ```json { "feedback": [ { "testId": "T1", "approved": true, "rejectionReason": "" }, { "testId": "T2", "approved": false, "rejectionReason": "Test is unnecessary, feature is not in scope" }, { "testId": "T3", "approved": false, "rejectionReason": "Edge case is incorrect, please handle null inputs differently" } ], "allTestsApproved": false } ``` -------------------------------- ### Example Agent Input: Create Memory Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Demonstrates the structured input format for creating a new memory using the agent's upsert_memory tool, providing content and context. ```Agent Input create memory content: My name is John Doe context: I was asked my name at the local DMV ``` -------------------------------- ### Run AI-Nexus Agent Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Invokes the make command to run the agent locally, which typically includes dependency installation and synchronization steps. ```Shell make run ``` -------------------------------- ### Example Agent Input: Update Memory Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Demonstrates the structured input format for updating an existing memory using the agent's upsert_memory tool, requiring the memory_id along with updated content and context. ```Agent Input update memory content: My name is John Doe context: This was mentioned because someone asked if I was Jill Dove's brother. memory_id: ceb9b38e-7082-4eb0-b51f-05f8accbca5a ``` -------------------------------- ### Create Todo Request Body - JSON Source: https://github.com/moonsong-labs/ai-nexus/blob/main/src/tester/test-prompts/web-api.md Example JSON request body for creating a new todo item via the POST /todos endpoint. It includes the required 'title' and 'status', and an optional 'description'. ```JSON { "title": "Buy groceries", "description": "Milk, eggs, and bread", "status": "pending" } ``` -------------------------------- ### JSON Schema for Test Feedback Source: https://github.com/moonsong-labs/ai-nexus/blob/main/src/tester/test-agent-system-prompt.md Defines the structure and properties expected in the user feedback JSON object for tests. It specifies the 'feedback' array containing individual test results and the 'allTestsApproved' boolean flag. ```json { "type": "object", "properties": { "feedback": { "type": "array", "items": { "type": "object", "required": ["testId", "approved", "rejectionReason"], "properties": { "testId": { "type": "string", "description": "ID of the test being reviewed" }, "approved": { "type": "boolean", "description": "Whether the test is approved" }, "rejectionReason": { "type": "string", "description": "Reason for rejection if not approved; may be empty for approved tests" } } } }, "allTestsApproved": { "type": "boolean", "description": "Whether all tests in this category are approved and agent can proceed to next category" } } } ``` -------------------------------- ### Update Todo Request Body - JSON Source: https://github.com/moonsong-labs/ai-nexus/blob/main/src/tester/test-prompts/web-api.md Example JSON request body for updating an existing todo item via the PUT /todos/{id} endpoint. It shows how to update the 'status' and 'description' fields. ```JSON { "status": "completed", "description": "Got everything from the store" } ``` -------------------------------- ### Run Code Formatting Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Executes the make command to format code automatically according to project style guidelines. ```Shell make fmt ``` -------------------------------- ### Run LangGraph Dev Server with uv Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Executes the LangGraph development server using the uv package runner for local development and testing. ```Shell uv run -- langgraph dev ``` -------------------------------- ### Clean Project Files Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Executes the make command to clean build artifacts and other generated files from the project directory. ```Shell make clean ``` -------------------------------- ### Run Code Linting Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Executes the make command to perform code linting checks against project standards. ```Shell make lint ``` -------------------------------- ### Run Spell Check Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Executes the make command to check for spelling errors in documentation and code comments. ```Shell make spell_check ``` -------------------------------- ### Fix Spelling Errors Source: https://github.com/moonsong-labs/ai-nexus/blob/main/README.md Executes the make command to automatically fix detected spelling errors. ```Shell make spell_fix ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.