Hello. I'm following the "Amazon Nova Sonic integr...
# agents
f
Hello. I'm following the "Amazon Nova Sonic integration guide", but I keep getting the following error message on the console when I try to run it with the "_uv run agent.py console_" command.
ERROR aws_sdk_bedrock_runtime.client - Exception occurred while handling: AsyncSigV4Signer.sign() got an unexpected keyword argument 'http_request'
My code is as simple as it gets:
Copy code
from dotenv import load_dotenv

from livekit import agents
from livekit.agents import AgentSession, Agent, RoomInputOptions
from livekit.plugins import aws

load_dotenv(".env.local")

class Assistant(Agent):
    def __init__(self) -> None:
        super().__init__(instructions="You are a helpful voice AI assistant.")


async def entrypoint(ctx: agents.JobContext):
    session = AgentSession(
        llm=aws.realtime.RealtimeModel(),
    )

    await session.start(
        room=ctx.room,
        agent=Assistant(),

if __name__ == "__main__":
    agents.cli.run_app(agents.WorkerOptions(entrypoint_fnc=entrypoint))
l
I see that myself too, looks like a fix is in progress at https://github.com/livekit/agents/pull/3592/files. In the mean time, I added
aws-sdk-signers==0.0.3
to my dependencies and that fixed the issue.
🙌 1
c
works for me, thanks Darryn!
🙂 1