twosom opened a new issue, #100: URL: https://github.com/apache/flink-agents/issues/100
### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description Reasoning-capable Ollama models (e.g. deepseek-r1 family) often return intermediate thoughts wrapped in `<think>...</think>` before the final answer. Today, `OllamaChatModel` delivers the raw combined content. This feature proposes an optional flag `extract_reasoning` that, when enabled, will: 1. Parse and remove the first (or all) `<think>...</think>` sections from the user-visible content. 2. Store the extracted reasoning text inside `ChatMessage.extra_args` (e.g. `extra_args["reasoning"]`). 3. Preserve current behavior when the flag is false (default). ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
