-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99085ce
commit aae4e1c
Showing
20 changed files
with
191 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
...eact-json/src/main/kotlin/io/github/llmagentbuilder/planner/reactjson/ReActJsonPlanner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
package io.github.llmagentbuilder.planner.reactjson | ||
|
||
import io.github.llmagentbuilder.planner.executor.LLMPlanExecutor | ||
import io.micrometer.observation.ObservationRegistry | ||
import org.springframework.ai.chat.client.ChatClient | ||
|
||
class ReActJsonPlanner(chatClient: ChatClient) : | ||
LLMPlanExecutor(chatClient, ReActJsonOutputParser.INSTANCE) | ||
class ReActJsonPlanner( | ||
chatClient: ChatClient, | ||
observationRegistry: ObservationRegistry? = null, | ||
) : | ||
LLMPlanExecutor( | ||
chatClient, | ||
ReActJsonOutputParser.INSTANCE, | ||
observationRegistry | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
...nts/planner/react/src/main/kotlin/io/github/llmagentbuilder/planner/react/ReActPlanner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package io.github.llmagentbuilder.planner.react | ||
|
||
import io.github.llmagentbuilder.planner.executor.LLMPlanExecutor | ||
import io.micrometer.observation.ObservationRegistry | ||
import org.springframework.ai.chat.client.ChatClient | ||
|
||
class ReActPlanner(chatClient: ChatClient) : | ||
LLMPlanExecutor(chatClient, ReActOutputParser.INSTANCE) | ||
class ReActPlanner( | ||
chatClient: ChatClient, | ||
observationRegistry: ObservationRegistry? = null, | ||
) : | ||
LLMPlanExecutor(chatClient, ReActOutputParser.INSTANCE, observationRegistry) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
.../planner/simple/src/main/kotlin/io/github/llmagentbuilder/planner/simple/SimplePlanner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
package io.github.llmagentbuilder.planner.simple | ||
|
||
import io.github.llmagentbuilder.planner.executor.LLMPlanExecutor | ||
import io.micrometer.observation.ObservationRegistry | ||
import org.springframework.ai.chat.client.ChatClient | ||
|
||
class SimplePlanner(chatClient: ChatClient) : | ||
LLMPlanExecutor(chatClient, SimpleOutputParser.INSTANCE) { | ||
} | ||
class SimplePlanner( | ||
chatClient: ChatClient, | ||
observationRegistry: ObservationRegistry? = null | ||
) : | ||
LLMPlanExecutor( | ||
chatClient, | ||
SimpleOutputParser.INSTANCE, | ||
observationRegistry | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
...src/main/kotlin/io/github/llmagentbuilder/planner/structuredchat/StructuredChatPlanner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
package io.github.llmagentbuilder.planner.structuredchat | ||
|
||
import io.github.llmagentbuilder.planner.executor.LLMPlanExecutor | ||
import io.micrometer.observation.ObservationRegistry | ||
import org.springframework.ai.chat.client.ChatClient | ||
|
||
class StructuredChatPlanner(chatClient: ChatClient) : | ||
LLMPlanExecutor(chatClient, StructuredChatOutputParser.INSTANCE) | ||
class StructuredChatPlanner( | ||
chatClient: ChatClient, | ||
observationRegistry: ObservationRegistry? = null, | ||
) : | ||
LLMPlanExecutor( | ||
chatClient, | ||
StructuredChatOutputParser.INSTANCE, | ||
observationRegistry | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.