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

Method withBody

intercept/messages/base.go:263–265  ·  view source on GitHub ↗

withBody returns a per-request option that sends the current raw request payload as the request body. This is called for each API request so that the latest payload (including any messages appended during the agentic tool loop) is always sent.

()

Source from the content-addressed store, hash-verified

261// latest payload (including any messages appended during the agentic tool loop)
262// is always sent.
263func (i *interceptionBase) withBody() option.RequestOption {
264 return option.WithRequestBody("application/json", []byte(i.reqPayload))
265}
266
267func (*interceptionBase) withAWSBedrockOptions(ctx context.Context, cfg *aibconfig.AWSBedrock) ([]option.RequestOption, error) {
268 if cfg == nil {

Callers 2

newStreamMethod · 0.80
newMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected