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.
()
| 271 | // latest payload (including any messages appended during the agentic tool loop) |
| 272 | // is always sent. |
| 273 | func (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 | // |
no outgoing calls
no test coverage detected