wenjin272 commented on code in PR #1397:
URL: https://github.com/apache/flink-agents/pull/1397#discussion_r4691084952


##########
api/src/main/java/org/apache/flink/agents/api/utils/JacksonMapperFactory.java:
##########
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.agents.api.utils;
+
+import com.fasterxml.jackson.databind.json.JsonMapper;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import org.apache.flink.annotation.Internal;
+
+/** Creates independently configurable JSON mappers with Java time support. */
+@Internal
+public final class JacksonMapperFactory {
+    private JacksonMapperFactory() {}
+
+    public static JsonMapper.Builder builderWithJavaTime() {

Review Comment:
   Nit: Could we rename this to `builder()` and document `JavaTimeModule` as 
part of the default configuration? This also keeps the name appropriate if we 
add other common modules later.



##########
docs/content/docs/development/calling-llms/model_routing.md:
##########
@@ -293,7 +293,7 @@ Two optional settings customize the judge:
 | Setting | Description |
 |---------|-------------|
 | `Strategies.llm(judgeModel, promptTemplate)` | Supply the judge's system 
instructions. Include `{candidates}` to insert one `- name: description` line 
per candidate, and instruct the judge to return the verdict format above. |
-| `withMaxContextChars(int)` | Limit conversation text, including tool calls 
and results. System messages, rendered prompt messages, and the newest message 
are always kept; older messages are included newest-first as space allows. 
Media stays with its message and does not count toward the character limit. 
Required messages can exceed the limit. |
+| `withMaxContextChars(int)` | Limit conversation text, including tool calls 
and results. System messages and the newest message are always kept. Older 
messages are included newest-first as space allows. The anchor model’s bound 
prompt and skill-discovery messages are added after this limit is applied. 
Media stays with its message and does not count toward the character limit. 
Required messages can exceed the limit. |

Review Comment:
   Nit: Could we shorten this description to the limit’s scope and key 
exceptions, and move the detailed truncation behavior to the text below the 
table?



-- 
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]

Reply via email to