Documentation
¶
Overview ¶
Package main demonstrates comprehensive usage of the PromptsService from the go-contextforge SDK. This example highlights prompts using integer IDs (unlike other services) and documents known upstream API bugs. Uses a mock HTTP server for self-contained demonstration.
Known Upstream Bugs (ContextForge v0.8.0): - CONTEXTFORGE-001: Toggle returns stale isActive state - CONTEXTFORGE-002: API accepts empty template field - CONTEXTFORGE-003: Toggle returns 400 instead of 404 for non-existent prompts
Run: go run examples/prompts/main.go
Click to show internal directories.
Click to hide internal directories.