Prompt and agent manager, dynamically load configuration from config-svc

- prompt-template takes config from the config-svc, dynamically reloads
  as new config appears.
- agent-react takes config from config-svc, dynamically reloads
- Fixed lack of data in config queue, needed to take the Earliest, not the
  Latest values.
- Changed text-completion and knowledge-query tool to both use 'query'
  as the argument.
- Prompt and agent no longer have command line args to supply
  configuration.
This commit is contained in:
cybermaggedon 2025-04-02 16:37:08 +01:00 committed by GitHub
parent b08c7f03a6
commit 298d09f388
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 141 additions and 246 deletions

View file

@ -67,6 +67,7 @@ class BaseProcessor:
self.config_subscriber = self.client.subscribe(
self.config_push_queue, config_subscriber_id,
consumer_type=pulsar.ConsumerType.Shared,
initial_position=pulsar.InitialPosition.Earliest,
schema=JsonSchema(ConfigPush),
)