MCPcopy Create free account
hub / github.com/InferCore/InferCore / baseReq

Function baseReq

internal/inferexec/orchestrator_test.go:70–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68func (s *stubLedger) MarkSuccess(ctx context.Context, requestID, backend, routeReason string) {}
69
70func baseReq() *types.AIRequest {
71 return &types.AIRequest{
72 TenantID: "t1",
73 TaskType: "chat",
74 Priority: "normal",
75 Input: map[string]any{"text": "hi"},
76 Options: types.RequestOptions{Stream: false, MaxTokens: 128},
77 }
78}
79
80func TestOrchestrator_PolicyRejected(t *testing.T) {
81 req := baseReq()

Calls

no outgoing calls

Tested by

no test coverage detected