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

Method AppendStep

internal/requests/sqlite.go:138–147  ·  view source on GitHub ↗
(ctx context.Context, step StepRow)

Source from the content-addressed store, hash-verified

136}
137
138func (s *sqliteStore) AppendStep(ctx context.Context, step StepRow) error {
139 _, err := s.db.ExecContext(ctx, `
140INSERT INTO request_steps (
141 request_id, step_index, step_type, input_json, output_json, backend, status, error, latency_ms, metadata_json
142) VALUES (?,?,?,?,?,?,?,?,?,?)`,
143 step.RequestID, step.StepIndex, step.StepType, string(step.InputJSON), string(step.OutputJSON),
144 step.Backend, step.Status, step.Error, step.LatencyMs, string(step.MetadataJSON),
145 )
146 return err
147}
148
149func (s *sqliteStore) GetRequest(ctx context.Context, requestID string) (RequestRow, error) {
150 row := s.db.QueryRowContext(ctx, `

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected