MCPcopy Index your code
hub / github.com/coder/coder / withBody

Method withBody

aibridge/intercept/messages/base.go:273–275  ·  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

271// latest payload (including any messages appended during the agentic tool loop)
272// is always sent.
273func (i *interceptionBase) withBody() option.RequestOption {
274 return option.WithRequestBody("application/json", []byte(i.reqPayload))
275}
276
277// withAWSBedrockOptions returns request options for authenticating with AWS Bedrock.
278//

Callers 2

newStreamMethod · 0.80
newMessageWithKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected