The invoke_agent API is under AgentsforBedrockRuntime (see API doc). So changing your bedrock_client would resolve the error.
invoke_agent
bedrock_client
bedrock_client = boto3.client("bedrock-agent-runtime")