What's the proper way to stub tool calls? #389
Unanswered
AlexVPopov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
Let's say one has this tool:
What's the proper way to stub this? Obviously, I could stub the service:
What I don't like is that this goes into the implementation details of the tool. I was hoping I could do:
However, this fails, because under the hood the stub receives other methods, such as
name
,parameters
etc.. Of course, I could stub all of those, but that breaks encapsulation and is prone to failure in the future (if the implementation changes).How do you stub tool calls, folks?
Beta Was this translation helpful? Give feedback.
All reactions