Files
Sergey Kozyrenko b8b90f8349 refactor(providers): use native adaptive thinking from the langchaingo fork
Adaptive thinking (Claude Opus 4.7+) is now implemented natively in the
vxcontrol/langchaingo fork (v0.1.14-update.6): the anthropic and bedrock clients
emit thinking.type=adaptive + output_config.effort and omit the sampling params
adaptive models reject. PentAGI no longer patches the serialized request body.

- pconfig.PrepareAdaptiveCallOptions appends llms.WithAdaptiveReasoning; the
  ctx-effort plumbing (WithAdaptiveEffort/AdaptiveEffortFromContext) is removed.
- Delete the bedrock smithy Build middleware and anthropic http RoundTripper
  (adaptive_thinking.go + tests in both packages) that rewrote the request body.
- Bump the langchaingo require to v0.1.14-update.6; refresh llms_how_to.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 00:47:32 +07:00
..