Normalize required fields in agent JSON schemas for OpenAI
OpenAI rejects schemas where optional properties are absent from the required array. Promote all properties to required and mark formerly optional ones nullable so the model knows it may pass null. Also upgrade tool error log level from Warn to Error. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -1279,7 +1279,7 @@ func executeSingleTool(
|
||||
content = content[:200] + "... (truncated)"
|
||||
}
|
||||
|
||||
logger.WarnCtx(
|
||||
logger.ErrorCtx(
|
||||
ctx,
|
||||
"tool returned error",
|
||||
log.String("tool", tool.Name()),
|
||||
|
||||
Reference in New Issue
Block a user