Simple example of Dagger python module that uses an agent to fix Dockerfile
test_dag- directory with the main Dagger module.test_dag/workspace- directory with the Dagger module that's used as Workspace for the agent.scripts- helper bash scripts..devcontainer- directory with the devcontainer configuration.
I recommend to use VSCode + devcontainer to run this example. https://code.visualstudio.com/docs/devcontainers/containers
- Open the project in VSCode.
- Reopen the project in a devcontainer:
<CTRL/CMD+SHIFT+P> -> Dev Containers: Rebuild and Reopen in Container. - Configure LLM endpoints: https://docs.dagger.io/ai-agents/#2configure-llm-endpoints
- Run the agent:
dagger call test-agent