prompts

command
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL