Strands Agent Hooks - BeforeModelnvocationEvent #620
Unanswered
akingscote
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@theagenticguy Do you have any ideas? cheers |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think that the answer here is to just use the The I'll leave this discussion open, but I think I have a better way forward |
Beta Was this translation helpful? Give feedback.
2 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Im working my way through issue196, and have integrated the Strands Agent SDK with Nvidia NeMo. I will get working examples with Guardrails AI and LLamaFirewall and will contribute to the strands examples, with complete documentation.
I'm using a the HookProvider with a
BeforeModelInvocationEvent
and theAfterInvocationEvent
events.However, I'm struggling to find an attribute in the event that cleanly contains the users inputs, and the outputs from LLMs.
I'm currently manually parsing
event.agent.messages
for theBeforeModelInvocationEvent
, but it seems incredibly inefficient.Can someone please advise if I am missing something?
Thanks, Ashley
Here is an example:
CC @dbschmigelski
Beta Was this translation helpful? Give feedback.
All reactions