Skip to content

fix typo in code example #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private Generation generate(String task, String context) {
* (PASS/NEEDS_IMPROVEMENT/FAIL)
* and detailed feedback for improvement
*/
private EvaluationResponse evalute(String content, String task) {
private EvaluationResponse evaluate(String content, String task) {

EvaluationResponse evaluationResponse = chatClient.prompt()
.user(u -> u.text("{prompt}\nOriginal task: {task}\nContent to evaluate: {content}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public CommandLineRunner commandLineRunner(ChatClient.Builder chatClientBuilder)
// PARALLEL WORKFLOW
// ------------------------------------------------------------

List<String> parallelResponse = new ParallelizationlWorkflow(chatClientBuilder.build())
List<String> parallelResponse = new ParallelizationWorkflow(chatClientBuilder.build())
.parallel("""
Analyze how market changes will impact this stakeholder group.
Provide specific impacts and recommended actions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
* "https://www.anthropic.com/research/building-effective-agents">Building
* Effective Agents</a>
*/
public class ParallelizationlWorkflow {
public class ParallelizationWorkflow {

private final ChatClient chatClient;

public ParallelizationlWorkflow(ChatClient chatClient) {
public ParallelizationWorkflow(ChatClient chatClient) {
this.chatClient = chatClient;
}

Expand Down
2 changes: 1 addition & 1 deletion model-context-protocol/filesystem/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Spring AI Model Context Protocol Demo Application

A demo application showcasing the integration of Spring AI with File system using the Model Context Protocol (MCP).
This application enables natural language interactions with predefiend folders in your local files system.
This application enables natural language interactions with predefined folders in your local files system.

It starts and connects to [Filesystem MCP-Server](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) with provided accsss to your `model-context-protocol/filesystem/target` folder

Expand Down