Refactor BaseAgent
This commit is contained in:
@@ -62,7 +62,7 @@ public class AgentTest {
|
||||
AgentType.CONVERSATION,
|
||||
ModelCategory.MEDIUM,
|
||||
"",
|
||||
"Generate a list of 5 distinct features. Provide no preamble and no explanation. Return the response in JSON format with the following field: { \"features\": [\"Feature 1\", \"Feature 2\", ... ] }",
|
||||
"Generate a list of 5 distinct functional features. In scope is business logic, not code mechanics. Provide no preamble and no explanation. Return the response in JSON format with the following field: { \"features\": [\"Feature 1\", \"Feature 2\", ... ] }",
|
||||
new JsonAgentResponseHandler(),
|
||||
null,
|
||||
context -> context.getContext().get("features").forEach(feature -> LOGGER.info(feature.toString())),
|
||||
@@ -103,7 +103,7 @@ public class AgentTest {
|
||||
context -> AgentNext.END));
|
||||
|
||||
final var context = new AgentContext(agents);
|
||||
context.getContext().put("code", List.of(Files.readString(Path.of("src/main/java/de/extio/lmlib/agent/Agent.java"))));
|
||||
context.getContext().put("code", List.of(Files.readString(Path.of("src/main/java/de/extio/lmlib/agent/BaseAgent.java"))));
|
||||
|
||||
final var resultContexts = this.agentExecutor.walkGraph(agents.get("CodeSummarizer"), context);
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
profile.model.s=llama3-local
|
||||
profile.model.m=llama3-local
|
||||
profile.model.l=llama3-local
|
||||
profile.model.hot=llama3-local
|
||||
profile.model.cold=llama3-local
|
||||
profile.model.s=local-completion
|
||||
profile.model.m=local-completion
|
||||
profile.model.l=local-completion
|
||||
profile.model.hot=local-completion
|
||||
profile.model.cold=local-completion
|
||||
|
||||
agent.threads=4
|
||||
agent.threads=2
|
||||
|
||||
client.collectStatistics=true
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
prompts=llama3
|
||||
prompts=chatml
|
||||
tokenEncoding=cl100k_base
|
||||
maxTokens=2000
|
||||
maxContextLength=8000
|
||||
temperature=0.2
|
||||
temperature=0.4
|
||||
topP=1.0
|
||||
maxContinuations=1
|
||||
modelProvider=OAI_TEXT_COMPLETION
|
||||
Reference in New Issue
Block a user