A little feedback on `agents-test`. As user of `wi...
# koog-agentic-framework
r
A little feedback on
agents-test
. As user of
withTesting
feature, that took me a while to understand, why this code throwed NPE:
Copy code
withTesting {
                enableGraphTesting = true
            }
After looking at sources, realised that this should come with
verifyStrategy
, this is OK:
Copy code
withTesting {
                verifyStrategy<String,String>("test") {}
                enableGraphTesting = true
            }
By the way, am I getting it right: I can test my real strategy logic with that?
Seems, like this is something... Atleast I can see logs like while runing agent..
Copy code
withTesting {
                verifyStrategy<String,String>("your_real_strategy") {
                    val firstSubgraph = assertSubgraphByName<String, String>("real_subgraph")
                    verifySubgraph(firstSubgraph)
                }
                enableGraphTesting = true
            }
Failing with
JSONDecoding
, supposingly because of nested nodes that use structures as inputs/outputs, not sure yet
If you don't add
verifySubgraph
, test will fail with
No assertions...
If anyone interested, here is pretty dummy still working test case with real strategy
kodee loving 1
a
Thank you for the catch! Indeed, I see this is not reflected in the docs about graph testing.