AI_Command
Inspect and use AI answers.
Namespace: WebberZone\Better_Search\Pro\CLI
Since: 4.5.0
Source: includes/pro/cli/class-ai-command.php line 22
Extends: Base_Command
Methods
__construct()
Constructor.
Line: 36
public function __construct( Operations $operations );
| Type | Name | Description |
|---|---|---|
Operations |
$operations |
AI operations. |
status()
Show AI status.
OPTIONS
[–format=
EXAMPLES
wp bsearch ai status
wp bsearch ai status --format=json
Since: 4.5.0
Line: 58
public function status( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array |
$args |
Positional arguments. |
array |
$assoc_args |
Associative arguments. |
Returns: void
check_provider()
Force a live provider availability check.
EXAMPLES
wp bsearch ai check-provider
Since: 4.5.0
Line: 90
public function check_provider( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array |
$args |
Positional arguments. |
array |
$assoc_args |
Associative arguments. |
Returns: void
ask()
Ask a question using the configured AI provider.
OPTIONS
[–format=
EXAMPLES
wp bsearch ai ask "How do I configure search?"
Since: 4.5.0
Line: 119
public function ask( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array |
$args |
Positional arguments. |
array |
$assoc_args |
Associative arguments. |
Returns: void