System prompt in JavaScript
This folder contains JavaScript examples for interacting with OpenAI, Anthropic, and Google Gemini models using system prompts.
Requirements
- Node.js
- Corresponding API keys are set as environment variables (
OPENAI_API_KEY,ANTHROPIC_API_KEY, andGOOGLE_API_KEY)
Examples
openai-gpt-system-prompt/: System prompt with OpenAI GPT models.anthropic-claude-system-prompt/: System prompt with Anthropic Claude models.google-gemini-system-prompt/: System prompt with Google Gemini models.ollama-local-system-prompt/: System prompt with Ollama models.
Other instruction mechanisms
- Agent skills: Reusable packages of instructions and resources.
- Instruction artifacts: Project-specific guidance files (e.g.,
AGENTS.md).
Running the examples
Each example is in its own folder and contains a README.md with instructions on how to run it.