(ctx context.Context, req *aibridge.InterceptionRecord)
| 24 | } |
| 25 | |
| 26 | func (t *recorderTranslation) RecordInterception(ctx context.Context, req *aibridge.InterceptionRecord) error { |
| 27 | _, err := t.client.RecordInterception(ctx, &proto.RecordInterceptionRequest{ |
| 28 | Id: req.ID, |
| 29 | ApiKeyId: t.apiKeyID, |
| 30 | InitiatorId: req.InitiatorID, |
| 31 | Provider: req.Provider, |
| 32 | ProviderName: req.ProviderName, |
| 33 | Model: req.Model, |
| 34 | UserAgent: req.UserAgent, |
| 35 | Client: req.Client, |
| 36 | ClientSessionId: req.ClientSessionID, |
| 37 | Metadata: marshalForProto(req.Metadata), |
| 38 | StartedAt: timestamppb.New(req.StartedAt), |
| 39 | CorrelatingToolCallId: req.CorrelatingToolCallID, |
| 40 | CredentialKind: req.CredentialKind, |
| 41 | CredentialHint: req.CredentialHint, |
| 42 | }) |
| 43 | return err |
| 44 | } |
| 45 | |
| 46 | func (t *recorderTranslation) RecordInterceptionEnded(ctx context.Context, req *aibridge.InterceptionRecordEnded) error { |
| 47 | _, err := t.client.RecordInterceptionEnded(ctx, &proto.RecordInterceptionEndedRequest{ |
nothing calls this directly
no test coverage detected