Skip to content

Commit 47eac1f

Browse files
committed
refactor: fix config path and cookiecutter template syntax
- Changed config path from parent.parent to parent directory - Fixed cookiecutter variable syntax from Python f-string to Jinja2 template format
1 parent 378a361 commit 47eac1f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • {{cookiecutter.project_name}}/{{cookiecutter.project_slug}}

‎{{cookiecutter.project_name}}/{{cookiecutter.project_slug}}/main.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ async def initialize_mcp_tools(env: dict = None):
6060
def load_config() -> dict:
6161
"""Load agent configuration from project root."""
6262
# Get path to agent_config.json in project root
63-
project_root = Path(__file__).parent.parent
64-
config_path = project_root / "agent_config.json"
63+
config_path = Path(__file__).parent / "agent_config.json"
6564

6665
with open(config_path, "r") as f:
6766
return json.load(f)
@@ -73,7 +72,7 @@ async def initialize_agent():
7372
global agent, model_name, mcp_tools
7473

7574
agent = Agent(
76-
name=f"{cookiecutter.project_name} Bindu Agent",
75+
name=f"{{cookiecutter.project_name}} Bindu Agent",
7776
model=OpenRouter(id=model_name),
7877
tools=[mcp_tools], # MultiMCPTools instance
7978
instructions=dedent("""\

0 commit comments

Comments
 (0)