Skip to content

Commit

Permalink
update spring boot configuration prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcheng1982 committed May 6, 2024
1 parent 7133fb9 commit 9eda9d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static class ChatAgentConfiguration {
}

@Bean
@ConditionalOnProperty(prefix = "io.github.alexcheng1982.agentappbuilder.chatagent.memory", name = "enabled", matchIfMissing = true)
@ConditionalOnProperty(prefix = "io.github.llmagentbuilder.chatagent.memory", name = "enabled", matchIfMissing = true)
@ConditionalOnMissingBean
public ChatMemoryStore chatMemoryStore() {
return new InMemoryChatMemoryStore();
Expand All @@ -80,15 +80,15 @@ public Planner planner(ChatClient chatClient,
}

@Bean
@ConditionalOnProperty(prefix = "io.github.alexcheng1982.agentappbuilder.chatagent.tracing", name = "enabled", matchIfMissing = true)
@ConditionalOnProperty(prefix = "io.github.llmagentbuilder.chatagent.tracing", name = "enabled", matchIfMissing = true)
@ConditionalOnBean(Planner.class)
@ConditionalOnMissingBean
public ObservationRegistry observationRegistry() {
return ObservationRegistry.create();
}

@Bean
@ConditionalOnProperty(prefix = "io.github.alexcheng1982.agentappbuilder.chatagent.metrics", name = "enabled", matchIfMissing = true)
@ConditionalOnProperty(prefix = "io.github.llmagentbuilder.chatagent.metrics", name = "enabled", matchIfMissing = true)
@ConditionalOnBean(Planner.class)
@ConditionalOnMissingBean
public MeterRegistry meterRegistry() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "io.github.alexcheng1982.llmagentbuilder.chatagent")
@ConfigurationProperties(prefix = "io.github.llmagentbuilder.chatagent")
public class ChatAgentProperties {

private boolean enabled = true;
Expand Down

0 comments on commit 9eda9d3

Please sign in to comment.