MCPcopy Create free account
hub / github.com/coder/aibridge / newMessage

Method newMessage

intercept/messages/blocking.go:338–343  ·  view source on GitHub ↗
(ctx context.Context, svc anthropic.MessageService)

Source from the content-addressed store, hash-verified

336}
337
338func (i *BlockingInterception) newMessage(ctx context.Context, svc anthropic.MessageService) (_ *anthropic.Message, outErr error) {
339 ctx, span := i.tracer.Start(ctx, "Intercept.ProcessRequest.Upstream", trace.WithAttributes(tracing.InterceptionAttributesFromContext(ctx)...))
340 defer tracing.EndSpanErr(span, &outErr)
341
342 return svc.New(ctx, anthropic.MessageNewParams{}, i.withBody())
343}

Callers 1

ProcessRequestMethod · 0.95

Calls 4

EndSpanErrFunction · 0.92
StartMethod · 0.80
withBodyMethod · 0.80

Tested by

no test coverage detected