Files
cleveragents-core/tests/features/agent_base_coverage.feature
T

35 lines
1.4 KiB
Gherkin

Feature: Agent Base Class Coverage
In order to ensure the robustness of the base Agent classes
As a developer
I want to test all code paths in `src/cleveragents/agents/base.py`
Scenario: Agent metadata includes model and provider
Given an Agent is initialized with model and provider in config
When I get the agent's metadata
Then the metadata should contain the model "test-model"
And the metadata should contain the provider "test-provider"
Scenario: Agent metadata includes only model
Given an Agent is initialized with only a model in config
When I get the agent's metadata
Then the metadata should contain the model "test-model"
And the metadata should not contain a provider
Scenario: Agent metadata includes only provider
Given an Agent is initialized with only a provider in config
When I get the agent's metadata
Then the metadata should not contain a model
And the metadata should contain the provider "test-provider"
Scenario: AgentWithMemory handles invalid memory type on load
Given an AgentWithMemory instance
When I try to load memory with a non-dictionary value
Then an AgentCreationError should be raised
Scenario: AgentWithMemory saves and loads memory correctly
Given an AgentWithMemory instance
And I save the initial memory state
When I modify the agent's memory
And I load the saved memory state
Then the agent's memory should be restored to the initial state