Implement Phase 9 structured LLM adapter spike

This commit is contained in:
2026-05-11 19:54:57 -05:00
parent aeb31f1c0d
commit 0b17a6fbeb
8 changed files with 730 additions and 25 deletions

View File

@@ -13,9 +13,15 @@ import (
type fakeLLMClient struct{}
func (f *fakeLLMClient) CompleteStructured(ctx context.Context, req StructuredCompletionRequest) (StructuredCompletionResponse, error) {
func (f *fakeLLMClient) CompleteStructured(ctx context.Context, req StructuredCompletionRequest, out any) (StructuredCompletionResponse, error) {
_ = ctx
_ = req
if out != nil {
switch target := out.(type) {
case *map[string]any:
*target = map[string]any{"ok": true}
}
}
return StructuredCompletionResponse{Content: json.RawMessage(`{"ok":true}`)}, nil
}