wip #42
static-analysis.yml
on: push
phpstan
36s
type-coverage
1m 5s
Annotations
10 errors and 1 warning
|
phpstan:
src/Agents/Contracts/AgentBuilder.php#L51
Method Cortex\Agents\Contracts\AgentBuilder::output() has invalid return type Cortex\Agents\Contracts\Cortex\JsonSchema\Types\ObjectSchema.
|
|
phpstan:
src/Agents/Agent.php#L303
Method Cortex\Agents\Agent::buildOutput() has parameter $output with no value type specified in iterable type array.
|
|
phpstan:
src/Agents/Agent.php#L264
Method Cortex\Agents\Agent::buildLLM() has parameter $tools with no value type specified in iterable type array.
|
|
phpstan:
src/Agents/Agent.php#L229
Method Cortex\Agents\Agent::buildPromptTemplate() has parameter $initialPromptVariables with no value type specified in iterable type array.
|
|
phpstan:
src/Agents/Agent.php#L218
Method Cortex\Agents\Agent::getMemory() should return Cortex\Memory\ChatMemory but returns Cortex\Contracts\ChatMemory.
|
|
phpstan:
src/Agents/Agent.php#L63
Parameter $output of method Cortex\Agents\Agent::__construct() has invalid type Cortex\Agents\Cortex\JsonSchema\Types\ObjectSchema.
|
|
phpstan:
src/Agents/Agent.php#L56
PHPDoc tag `@param` for parameter $output with type array<Cortex\JsonSchema\Contracts\Schema>|class-string|Cortex\Agents\Cortex\JsonSchema\Types\ObjectSchema|null is not subtype of native type array|Cortex\JsonSchema\Types\ObjectSchema|string|null.
|
|
phpstan:
src/Agents/Agent.php#L56
Method Cortex\Agents\Agent::__construct() has parameter $output with no value type specified in iterable type array.
|
|
phpstan:
src/Agents/AbstractAgentBuilder.php#L87
Method Cortex\Agents\AbstractAgentBuilder::make() has parameter $parameters with no value type specified in iterable type array.
|
|
phpstan:
src/Agents/AbstractAgentBuilder.php#L62
Method Cortex\Agents\AbstractAgentBuilder::initialPromptVariables() return type has no value type specified in iterable type array.
|
|
phpstan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|