This commit is contained in:
Lorenze Jay
2025-01-24 15:36:20 -08:00
parent 4ff9d4963c
commit d438f5a7d4

View File

@@ -1635,11 +1635,12 @@ def test_agent_with_knowledge_sources_works_with_copy():
goal=agent.goal,
backstory=agent.backstory,
llm=agent.llm,
knowledge_sources=agent.knowledge_sources,
knowledge_sources=[string_source],
)
# Call copy method
agent_copy = agent.copy()
print("agent_copy.knowledge_sources", agent_copy.knowledge_sources)
# Verify the mock was called
mock_copy.assert_called_once()