Skip to content

Commit

Permalink
agentCore beta v0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoleojames1 committed Dec 12, 2024
1 parent 53b6e89 commit fd80917
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include src/agentCores/data/agent_matrix.db
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ example usage:
agent_config = {
"agentCore": {
"agent_id": "custom_assistant",
"models": {"large_language_model": "gpt-4"},
"models": {"large_language_model": "phi3"},
"prompts": {"user_input_prompt": "You are a helpful assistant."}
}
}
Expand Down
File renamed without changes
8 changes: 7 additions & 1 deletion src/agentCores/agentCores.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
import copy
from pathlib import Path
from typing import Optional, Dict, Any
from pkg_resources import resource_filename
from .agentMatrix import agentMatrix

class agentCores:
Expand All @@ -100,11 +101,16 @@ class agentCores:
}

def __init__(self,
db_path: str = "agent_matrix.db",
db_path: str = None,
db_config: Optional[Dict] = None,
template: Optional[Dict] = None):
"""Initialize AgentCore with optional custom configuration."""
self.current_date = time.strftime("%Y-%m-%d")

# Use package data path if no custom path provided
if db_path is None:
db_path = resource_filename('agentCores', 'data/agent_matrix.db')

self.agent_library = agentMatrix(db_path)

# Initialize template with any custom configuration
Expand Down
Binary file not shown.

0 comments on commit fd80917

Please sign in to comment.