Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/docs/development/workflow_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public class ReviewAnalysisAgent extends Agent {
.addInitialArgument("model", "qwen3:8b")
.addInitialArgument("prompt", "reviewAnalysisPrompt")
.addInitialArgument("tools", Collections.singletonList("notifyShippingManager"))
.addInitialArgument("extract_reasoning", "true")
.addInitialArgument("extract_reasoning", true)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static ResourceDescriptor reviewAnalysisModel() {
.addInitialArgument("model", "qwen3:8b")
.addInitialArgument("prompt", "reviewAnalysisPrompt")
.addInitialArgument("tools", Collections.singletonList("notifyShippingManager"))
.addInitialArgument("extract_reasoning", "true")
.addInitialArgument("extract_reasoning", true)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public OllamaChatModelSetup(
ResourceDescriptor descriptor, BiFunction<String, ResourceType, Resource> getResource) {
super(descriptor, getResource);
this.model = descriptor.getArgument("model");
this.extractReasoning = Boolean.parseBoolean(descriptor.getArgument("extract_reasoning"));
this.extractReasoning = descriptor.getArgument("extract_reasoning");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private PythonResourceProvider deserializePythonResourceProvider(JsonNode node)
JsonNode kwargsNode = node.get("kwargs");
Map<String, Object> kwargs = new HashMap<>();
if (kwargsNode != null && kwargsNode.isObject()) {
kwargs = (Map<String, Object>) parseJsonNode(kwargsNode);
kwargs = mapper.convertValue(kwargsNode, Map.class);
}
return new PythonResourceProvider(
name, ResourceType.fromValue(type), module, clazz, kwargs);
Expand All @@ -98,7 +98,7 @@ private PythonSerializableResourceProvider deserializePythonSerializableResource
JsonNode serializedNode = node.get("serialized");
Map<String, Object> serialized = new HashMap<>();
if (serializedNode != null && serializedNode.isObject()) {
serialized = (Map<String, Object>) parseJsonNode(serializedNode);
serialized = mapper.convertValue(serializedNode, Map.class);
}
return new PythonSerializableResourceProvider(
name, ResourceType.fromValue(type), module, clazz, serialized);
Expand Down