Skip to content

Conversation

@GrelaM100
Copy link

Closes #91

What was fixed

The api-microservice template was generating agent-related files by default, even though they are not applicable to this project type.

Root cause

The file list in copier.yaml did not conditionally guard agent-related schemas and routes.

Solution

Added Jinja conditionals in copier.yaml so the following files are only generated when project_type == "api-microservice":

  • app/schemas/chat.py
  • app/schemas/agent.py
  • app/schemas/message.py
  • app/schemas/deps.py
  • app/api/routes/v1/chat.py

How to test

  1. Generate a project using the api-microservice template
  2. Verify that only the expected files are created
  3. Generate other template types and confirm agent-related files are not present

Environment

  • OS: Ubuntu 24.04
  • Python: 3.13

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Template generates agent-related files

1 participant