forked from cleveragents/cleveragents-core
63 lines
2.4 KiB
Gherkin
63 lines
2.4 KiB
Gherkin
Feature: Interactive Commands Functionality
|
|
As a user of CleverAgents
|
|
I want to use various interactive commands
|
|
So that I can control my interactive session
|
|
|
|
Scenario: Parse basic commands
|
|
Given I have a command parser
|
|
When I parse the command "/help"
|
|
Then the command should be identified as "help"
|
|
And the args should be empty
|
|
|
|
Scenario: Parse commands with arguments
|
|
Given I have a command parser
|
|
When I parse the command "/config set temperature 0.7"
|
|
Then the command should be identified as "config_set"
|
|
And the args should contain "temperature" and "0.7"
|
|
|
|
Scenario: Parse command aliases
|
|
Given I have a command parser
|
|
When I parse the command "/h"
|
|
Then the command should be identified as "help"
|
|
When I parse the command "/q"
|
|
Then the command should be identified as "exit"
|
|
When I parse the command "/hist"
|
|
Then the command should be identified as "history"
|
|
|
|
Scenario: Execute help command
|
|
Given I have a command executor
|
|
When I execute the "help" command
|
|
Then I should receive help text containing available commands
|
|
|
|
Scenario: Execute exit command
|
|
Given I have a command executor
|
|
When I execute the "exit" command
|
|
Then I should receive a message about exiting
|
|
And the continue flag should be false
|
|
|
|
Scenario: Execute config commands
|
|
Given I have a command executor
|
|
When I execute the "config_show" command with args "agents"
|
|
Then I should receive a message about showing configuration
|
|
When I execute the "config_set" command with args "temperature 0.8"
|
|
Then I should receive a message about setting configuration
|
|
|
|
Scenario: Execute agent commands
|
|
Given I have a command executor
|
|
When I execute the "agents_list" command
|
|
Then I should receive a message about listing agents
|
|
When I execute the "agent_info" command with args "test_agent"
|
|
Then I should receive a message about showing agent information
|
|
|
|
Scenario: Execute switch command
|
|
Given I have a command executor
|
|
When I execute the "switch" command with args "new_agent"
|
|
Then I should receive a message about switching agents
|
|
When I execute the "switch" command without args
|
|
Then I should receive an error message about usage
|
|
|
|
Scenario: Execute unknown command
|
|
Given I have a command executor
|
|
When I execute the "unknown" command
|
|
Then I should receive an error message about unknown command
|