Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions python/packages/kagent-adk/src/kagent/adk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ async def test_agent(agent_config: AgentConfig, agent_card: AgentCard, task: str
@app.command()
def test(
task: Annotated[str, typer.Option("--task", help="The task to test the agent with")],
filepath: Annotated[str, typer.Option("--filepath", help="The path to the agent config file")],
filepath: Annotated[str, typer.Option("--filepath", help="The path to the directory of config files")],
):
with open(filepath, "r") as f:
content = f.read()
config = json.loads(content)
with open(os.path.join(filepath, "config.json"), "r") as f:
config = json.load(f)

with open(os.path.join(filepath, "agent-card.json"), "r") as f:
agent_card = json.load(f)
Expand Down
Loading