Repository navigation
is there any update available for BedrockAgent bedrock_agent_with_kernel_function create_kernel_function_action_group function?
#12689
Replies: 1 comment
|
Thanks for pinning this down to a specific version and linking the exact sample line, that made it quick to check against the released 1.34.0 wheel.
# check.py, run with semantic-kernel[aws]==1.34.0
import asyncio, inspect, semantic_kernel
from semantic_kernel.agents import BedrockAgent
print("semantic-kernel", semantic_kernel.__version__)
print("hasattr =", hasattr(BedrockAgent, "create_kernel_function_action_group"))
m = BedrockAgent.create_kernel_function_action_group
print("defined in", inspect.getsourcefile(m).split("site-packages/")[-1], "line", inspect.getsourcelines(m)[1])
async def missing_await():
agent = BedrockAgent.create_and_prepare_agent("demo", "demo") # <-- no await
await agent.create_kernel_function_action_group()
try:
asyncio.run(missing_await())
except AttributeError as e:
print("missing await ->", type(e).__name__ + ":", e)
The second link in your post is What the method does (bedrock_agent_base.py:238 in 1.34.0)
So a fresh Checked against the 1.34.0 wheel from PyPI and |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi All,
trying to use v'1.34.0', is there any update for the bedrock_agent_with_kernel_function
doc states
create_kernel_function_action_groupfunction# Note: We still need to create the kernel function action group on the service side.I'm getting an error:
object has no attribute 'create_kernel_function_action_group'while trying to run this sample-code bedrock_agent_with_kernel_function.All reactions