From f72ff156eb324b3877a2e60e41b2fbf0dad184e0 Mon Sep 17 00:00:00 2001 From: Tapan Chugh Date: Thu, 23 Oct 2025 13:44:33 -0700 Subject: [PATCH 1/2] minor bugfix: use fast-agent instructions properly --- src/wags/cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wags/cli/main.py b/src/wags/cli/main.py index 6488d97..d58b84f 100644 --- a/src/wags/cli/main.py +++ b/src/wags/cli/main.py @@ -69,7 +69,7 @@ def run( try: run_async_agent( name="wags", - instruction=str(instruction), + instruction=instruction, config_path=str(config_path), servers=servers, urls=None, From ea2d08ee9de25f7afc2fba5e0eb223cc754f30d8 Mon Sep 17 00:00:00 2001 From: Tapan Chugh Date: Thu, 23 Oct 2025 13:52:49 -0700 Subject: [PATCH 2/2] minor bugfix: use fast-agent instructions properly --- src/wags/cli/main.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wags/cli/main.py b/src/wags/cli/main.py index d58b84f..8d9f8a2 100644 --- a/src/wags/cli/main.py +++ b/src/wags/cli/main.py @@ -38,7 +38,7 @@ def version() -> None: def run( servers: str | None = None, config_path: Path | None = None, - instruction: Path | None = None, + instruction_file: Path | None = None, model: str = "gpt-4o", ) -> None: """Run an interactive agent connected to wags servers. @@ -46,7 +46,7 @@ def run( Args: servers: Comma-separated list of servers to connect to (defaults to all) config_path: Path to fastagent.config.yaml (defaults to servers/fastagent.config.yaml) - instruction: Path to instruction file (defaults to src/wags/utils/agent_instructions.txt) + instruction_file: Path to instruction file (defaults to src/wags/utils/agent_instructions.txt) model: Model to use (defaults to gpt-4o) """ from fast_agent.cli.commands.go import run_async_agent @@ -59,17 +59,17 @@ def run( console.print("\nCreate a fastagent.config.yaml file or specify --config-path") sys.exit(1) - if instruction is None: - instruction = Path(__file__).parent.parent / "utils" / "agent_instructions.txt" + if instruction_file is None: + instruction_file = Path(__file__).parent.parent / "utils" / "agent_instructions.txt" - if not instruction.exists(): - console.print(f"[red]Error:[/red] Instruction file not found: {instruction}") + if not instruction_file.exists(): + console.print(f"[red]Error:[/red] Instruction file not found: {instruction_file}") sys.exit(1) try: run_async_agent( name="wags", - instruction=instruction, + instruction=instruction_file.read_text(encoding="utf-8"), config_path=str(config_path), servers=servers, urls=None,