Files
ai-agent-book/cursor-chats/20250921_213017_Add_requirements.txt_to_week2_prompt-engineering.md
liqiang b119135836
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
2026-08-20 13:12:50 +00:00

1.5 KiB

Cursor Chat: ai-agent-book

Metadata

  • Project: ai-agent-book
  • Path: /Users/boj
  • Date: 2025-09-21 21:30:17
  • Session ID: 7b6c020a-6124-4c8d-8fd6-e0b286637acf

Conversation

👤 You

Add requirements.txt to week2/prompt-engineering


🤖 Cursor Assistant

I'll help you add a requirements.txt file to the week2/prompt-engineering directory. Let me first examine the existing Python files to understand what dependencies are needed.


🤖 Cursor Assistant

Now I'll create a requirements.txt file for the week2/prompt-engineering directory based on the dependencies found in setup.py and the imports in the code:


🤖 Cursor Assistant

I've successfully created a requirements.txt file for the week2/prompt-engineering directory. The file includes all the essential dependencies found in the project:

Core AI/LLM libraries:

  • OpenAI, Mistral AI, Anthropic, Google Generative AI, and LiteLLM for various LLM integrations

Utility libraries:

  • Tenacity for retry logic
  • Termcolor for colored terminal output
  • NumPy for numerical operations
  • Pydantic for data validation
  • Requests for HTTP API calls
  • Python-dotenv for environment variable management

The dependencies are based on what I found in the existing setup.py file and the imports used throughout the codebase. Users can now install all required packages by running:

pip install -r requirements.txt

Exported from Cursor View