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