mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
Fix agent config handler registration, remove debug prints, disable RabbitMQ heartbeats (#764)
- Fix agent react and orchestrator services appending bare methods to config_handlers instead of using register_config_handler() — caused 'method object is not subscriptable' on config notify - Add exc_info to config fetch retry logging for proper tracebacks - Remove debug print statements from collection management dispatcher and translator - Disable RabbitMQ heartbeats (heartbeat=0) to prevent broker closing idle producer connections that can't process heartbeat frames from BlockingConnection
This commit is contained in:
parent
f0c9039b76
commit
2f8d6a3ffb
6 changed files with 9 additions and 8 deletions
|
|
@ -93,7 +93,9 @@ class Processor(AgentService):
|
|||
# Meta-router (initialised on first config load)
|
||||
self.meta_router = None
|
||||
|
||||
self.config_handlers.append(self.on_tools_config)
|
||||
self.register_config_handler(
|
||||
self.on_tools_config, types=["tool", "tool-service"]
|
||||
)
|
||||
|
||||
self.register_specification(
|
||||
TextCompletionClientSpec(
|
||||
|
|
|
|||
|
|
@ -81,7 +81,9 @@ class Processor(AgentService):
|
|||
# Track active tool service clients for cleanup
|
||||
self.tool_service_clients = {}
|
||||
|
||||
self.config_handlers.append(self.on_tools_config)
|
||||
self.register_config_handler(
|
||||
self.on_tools_config, types=["tool", "tool-service"]
|
||||
)
|
||||
|
||||
self.register_specification(
|
||||
TextCompletionClientSpec(
|
||||
|
|
|
|||
|
|
@ -28,9 +28,7 @@ class CollectionManagementRequestor(ServiceRequestor):
|
|||
self.response_translator = TranslatorRegistry.get_response_translator("collection-management")
|
||||
|
||||
def to_request(self, body):
|
||||
print("REQUEST", body, flush=True)
|
||||
return self.request_translator.decode(body)
|
||||
|
||||
def from_response(self, message):
|
||||
print("RESPONSE", message, flush=True)
|
||||
return self.response_translator.encode_with_completion(message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue