결론

agentResponse = bedrock_agent_runtime_client.invoke_agent(
    inputText="now let me take the last 3 months of the year off as vacation, from Oct 1 2024 through Dec 31 2024",
    agentId=agent_id,
    agentAliasId=agent_alias_id, 
    sessionId=session_id,
    enableTrace=enable_trace, 
    endSession= end_session,
    **streamingConfigurations={'streamFinalResponse': True**}
)
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "bedrock:InvokeModel",
                **"bedrock:InvokeModelWithResponseStream"**
            ],
            "Resource": "*"
        }
    ]
}

테스트하기

NonStreamingResponse_v1.mov

StreamingResponse_v1.mov