ambivo-agents 1.0.1__py3-none-any.whl → 1.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,7 +98,7 @@ class QdrantServiceAdapter:
98
98
  doc.metadata.update(custom_meta)
99
99
 
100
100
  # Create collection name with prefix from config
101
- collection_prefix = kb_config.get('default_collection_prefix', 'kb')
101
+ collection_prefix = kb_config.get('default_collection_prefix', '')
102
102
  collection_name = f"{collection_prefix}_{kb_name}"
103
103
 
104
104
  # Create vector store and index
@@ -126,7 +126,7 @@ class QdrantServiceAdapter:
126
126
  config = load_config()
127
127
  kb_config = get_config_section('knowledge_base', config)
128
128
 
129
- collection_prefix = kb_config.get('default_collection_prefix', 'kb')
129
+ collection_prefix = kb_config.get('default_collection_prefix', '')
130
130
  collection_name = f"{collection_prefix}_{kb_name}"
131
131
 
132
132
  similarity_top_k = kb_config.get('similarity_top_k', 5)
@@ -482,10 +482,11 @@ class ModeratorAgent(BaseAgent, BaseAgentHistoryMixin):
482
482
 
483
483
  # Add routing metadata to response
484
484
  agent_name = intent_analysis['primary_agent'].replace('_', ' ').title()
485
- response_content += f"\n\n*Processed by: {agent_name} (confidence: {intent_analysis['confidence']:.2f})*"
485
+ processed_by = f"\n\n*Processed by: {agent_name} (confidence: {intent_analysis['confidence']:.2f})*"
486
486
 
487
487
  response = self.create_response(
488
488
  content=response_content,
489
+ metadata = {"processed_by": processed_by},
489
490
  recipient_id=message.sender_id,
490
491
  session_id=message.session_id,
491
492
  conversation_id=message.conversation_id