| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame] | 1 | HTTP/1.1 200 OK |
| 2 | Date: Wed, 05 Mar 2025 10:00:00 GMT |
| 3 | Content-Type: application/json |
| 4 | Content-Length: 987 |
| 5 | |
| 6 | { |
| 7 | "id": "msg_0123456789abcdef", |
| 8 | "type": "message", |
| 9 | "role": "assistant", |
| 10 | "model": "claude-3-opus-20240229", |
| 11 | "stop_reason": "tool_use", |
| 12 | "stop_sequence": null, |
| 13 | "usage": { |
| 14 | "input_tokens": 256, |
| 15 | "output_tokens": 180 |
| 16 | }, |
| 17 | "content": [ |
| 18 | { |
| 19 | "type": "text", |
| 20 | "text": "I'll create a Dockerfile for this Go project." |
| 21 | } |
| 22 | ], |
| 23 | "tool_use": { |
| 24 | "id": "tu_0123456789abcdef", |
| 25 | "name": "dockerfile", |
| 26 | "input": { |
| 27 | "contents": "FROM golang:1.21-alpine\n\nWORKDIR /app\n\n# Install git for dependencies\nRUN apk add --no-cache git\n\n# Pre-copy/cache go.mod for efficient Docker caching\nCOPY go.mod go.sum* ./\nRUN go mod download\n\n# Copy the source code\nCOPY . .\n\n# Build the application\nRUN go build -o app ./cmd/sketch\n\n# Environment setup\nENV CGO_ENABLED=0\n\nCMD [\"./app\"]" |
| 28 | } |
| 29 | } |
| 30 | } |